Вопрос

I've successfully implemented the Google Static Maps API on a webpage. It works well on hundreds of locations. Example of a working call is:

http://maps.googleapis.com/maps/api/staticmap?sensor=false&center=Circus+Krone%2C+Marsstra%C3%9Fe+43+%2C+80335+M%C3%BCnchen%2C+DE&markers=color:red%7CCircus+Krone%2C+Marsstra%C3%9Fe+43+%2C+80335+M%C3%BCnchen%2C+DE&zoom=14&size=580x200

BUT: There are two locations where the API returns wrong images. Example:

http://maps.googleapis.com/maps/api/staticmap?sensor=false&center=Zorlu+Center%2C+%2C+34340+Istanbul%2C+TR&markers=color:red%7CZorlu+Center%2C+%2C+34340+Istanbul%2C+TR&zoom=14&size=580x200

The links to Google Maps for those locations work correctly:

maps.google.de/maps?saddr=&daddr=Zorlu+Center%2C+%2C+34340+Istanbul%2C+TR&hl=de

Does anyone have an idea what's wrong with the two not working image sources?

Cheers Philipp

Это было полезно?

Решение

static-maps use geocoding to locate addresses, you may see here that the given string didn't return a geocode-result: http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html#q%3DZorlu%20Center%2C%20%2C%2034340%20Istanbul%2C%20TR

Google-Maps is able to locate the string, because it also integrates Places.

So what's wrong: the provided address currently isn't geocodable

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top