Calculation of the area in the Google Static Map API

How is the area calculated using the Google Static APIs? After passing the Latitude and longitude of the plot to the google static map API, we get the final result. How is this done? How is it calculated, are there any formulas?

+4
source share
1 answer

I am not sure if there is a way to directly calculate if there is a step to calculate meters per pixels. You can ensure that if you know the size of the map in pixels and the zoom level, I'm not sure that my calculations are correct, but at 45 degrees latitude (north) the scale is 0.88 meters per pixel at a zoom level of 20, and then this the block doubles with the zoom level ... (for example, with a scale of level 19 it is 0.88 * 2, with 18..0.88 * 4..etc)

0
source

Source: https://habr.com/ru/post/1397288/


All Articles