10

Using google static maps, a 512x512 image is retrieved with center at a given latitude and longitude and at a given zoom level. Now How to find the meters per pixel for this image?

PS: I need to do this without javascript. Some kind of formula which can give the map scale (meters per pixel) based on zoomlevel, latitude, longitude will be helpful. Thanks.

Tomas
  • 57,621
  • 49
  • 238
  • 373
Vijay
  • 101
  • 1
  • 4

1 Answers1

3

See the stackoverflow question "Determining zoom level from single LatLong in Google Maps API" to get the latitude/longitude box around your results. Then, see the stackoverflow question "How to convert latitude or longitude to meters?" for the issues you will need to take into account.

Community
  • 1
  • 1
Phrogz
  • 296,393
  • 112
  • 651
  • 745