I want to create 2 new longitude and 2 new latitudes based on a coordinate and a distance in meters, I want to create a nice bounding box around a certain point. It is for a part of a city and max ±1500 meters. I therefore don’t think the curvature of earth has to be taken into account.
So I have 50.0452345 (x) and 4.3242234 (y) and I want to know x + 500 meters, x – 500 meters, y – 500 meters, y + 500 meters
I found many algorithms but almost all seem to deal with the distance between points.
The number of kilometers per degree of longitude is approximately
where
thetais the latitude in degrees andr_earthis approximately 6378 km.The number of kilometers per degree of latitude is approximately the same at all locations, approx
So you can do:
As long as
dxanddyare small compared to the radius of the earth and you don’t get too close to the poles.