Search code examples
androidgoogle-mapsgoogle-maps-api-2

Google map v2 give zero results for routes between two points


In Google map v2 i am calling following url to get routes result:

http://maps.googleapis.com/maps/api/directions/xml?origin=47.656,-123.360&destination=47.656,-125.360&sensor=false&units=metric&mode=driving

but it is giving result:

<DirectionsResponse><status>ZERO_RESULTS</status></DirectionsResponse>

Please suggest what to do i need to show these routes on map.


Solution

  • i personally checked it for your lat/long

    47.656,-123.360 destination=47.656,-125.360
    

    google not give any result (for the location).

    reason : your source lat/long is valid but there is some some monastery or hill around there. google only provide route path where near some roads/way. your second lat/long is not valid.

    because there is problem with find the location onto these lat long.

    Please try with some valid lat/long which has road near by it.