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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With