Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine scale in meters per pixel

Tags:

google-maps

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.

like image 500
Vijay Avatar asked Dec 05 '10 18:12

Vijay


1 Answers

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.

like image 114
Phrogz Avatar answered Oct 06 '22 05:10

Phrogz