Reputation: 2523
I am using google direction api to get direction/routes between two places.
When I query
Iam getting Status = NOT_FOUND.
But when I search this path from New York LaGuardia Airport Marriott, Queens, NY, United States to 200 e 57th st ny using https://maps.google.com/. Google display a direction path between these two places. You can see this via link: link
What should I do to get the reponse from google api.
Thanks.
Upvotes: 1
Views: 915
Reputation: 161324
Google Maps uses many sources of locations data including Places results. Look to me like the directions service can't find "New York LaGuardia Airport Marriott, Queens, NY, United States" (because it isn't an address). If I use the Places API, that can find it.
example using the javascript APIs
Upvotes: 1