I need to calculate a bounding box for osm query. I get coordinates of center of the area (WGS84) and radius (meters). How can I do it?
I though about using some kind of projection, calculating projected box coordinates and then convert it back. Is it good idea? If so, which projection will suit the best to this task? I've read that miller's projection is a poor idea and it's better to use state plane projection. But on the other hand in my case bounding box doesn't need to be accurate. The most important for me is to calculate those coordinates quickly.
I would be grateful if you could show me some code example that do conversions essential for calculating bounding box.
I wanted to make this works on whole planet, but if there are better approximations I can assume that it should work in eastern Europe Latitude: 48.342 - 55.279 Longitude: 13.645 - 25.071