I am create static maps using Google maps and am getting an odd problem. I am trying to encode a university around here but Google Maps static appears to create a map for somewhere in Virginia.
The link I am using is:
http://maps.google.com/maps/api/staticmap?center=10945+BOULEVARD+Circle+near+21117&zoom=l6&size=500×500&markers=color:red%7C10945+BOULEVARD+Circle+near+21117&format=jpeg&maptype=map&sensor=false&
When I go to google maps and just do 10945+BOULEVARD+Circle+near+21117 I get the correct map. Is this some odd bug in google maps static or am I missing something?
It’s fine to use “near” in your address, though if you know the city and state, it’s always best to include that in the query. Looks like the word “circle” in your address is being misinterpreted (e.g., change it to “cir”).
I simply changec circle to cir and it works for me:
http://maps.google.com/maps/api/staticmap?center=10945+BOULEVARD+Cir+Near+21117&zoom=16&size=500×500&markers=color:red%7C10945+BOULEVARD+Cir+near+21117&format=jpeg&maptype=map&sensor=false&
You could also simply add the state abbreviation and remove “near” and it should also work.