Distance between two points

Dear,

I am a user of your service and I have one question about it. When I calculate the distance by car between two points in Italy, one in Rome and one in Capri island, the system doesn’t return the distance but it gives me error code 2009. If I calculate the distance between Rome to Ischia island, the system return me correctly the distance. Which is my mistake?

Best regards

Hi,

please provide us with the raw request, i.e.

https://api.openrouteservice.org/directions?...

Thanks
Nils

https://api.openrouteservice.org/directions?coordinates=12.458496,41.847059|14.237251,40.546418&profile=driving-car&preference=fastest&units=m&language=en&geometry=true&geometry_format=encodedpolyline&geometry_simplify=true&instructions=true&instructions_format=text&elevation=false&extra_info=waytype&api_key=

Thanks
Enrico

Looks like the right-most ferry terminal on Capri is not connected to any road.

However, the left one is. And the ferry from Napoli for example can take both terminals.

https://www.openstreetmap.org/edit?editor=id&way=525627687#map=17/40.55703/14.24217

@adam, any idea?

@nils is right, this has to do with how the ferry terminals connect to the road network. Apart from the one affected terminal on Capri the terminals on the other side, i.e. on land seem to have issues too. Compare the following: https://maps.openrouteservice.org/directions?n1=40.555475&n2=14.240406&n3=16&a=40.556053,14.238625,40.629938,14.37428&b=0&c=0&k1=en-US&k2=km to https://maps.openrouteservice.org/directions?n1=40.627984&n2=14.376233&n3=16&a=40.556053,14.238625,40.625972,14.375997&b=0&c=0&k1=en-US&k2=km