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
  • 54,903
  • 47
  • 225
  • 361
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
  • 284,740
  • 104
  • 634
  • 722