Reputation: 4523
I am providing Origin Latitude/Longitude and Destination Latitude/Longitude to Google API.
But in response it returns Zero.
Provided Coordinates:
Origin = 70.7417,-22.6583
Destination = 48.8602,2.34107
Output Result:
This XML file does not appear to have any style information associated with it.
The document tree is shown below.
<DirectionsResponse>
<status>ZERO_RESULTS</status>
</DirectionsResponse>
Source Link:
Can anyone tell me where I am making a mistake?
Originally the points are form Danemark | Constable Pynt | 3985 | Gronland TO France Paris 75001 Ile-de-France
Upvotes: 0
Views: 869
Reputation: 17797
My guess would be that Google Maps tries to find a driving route between the two points. Since the locations you provided are in Greenland and France, with no direct connection, Google can't find directions, hence the response ZERO_RESULTS
.
Quote from the documentation:
ZERO_RESULTS indicates no route could be found between the origin and destination.
Upvotes: 1
Reputation: 115
"ZERO_RESULTS" indicates that the geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location.
please try to check if you coordinates are valid.
Upvotes: 1