1

I am using google direction api to get direction/routes between two places.

When I query

http://maps.googleapis.com/maps/api/directions/json?origin=New%20York%20LaGuardia%20Airport%20Marriott,%20Queens,%20NY,%20United%20States&destination=200%20e%2057th%20st%20ny&sensor=false

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.

Shehzad Bilal
  • 2,535
  • 2
  • 18
  • 27

1 Answers1

1

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

geocodezip
  • 158,664
  • 13
  • 220
  • 245