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
"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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.