Three people were taken to Edinburgh Royal Infirmary for treatment after two ambulances were sent to the scene.