views:

90

answers:

1

I just want to find a straightforward, C# class that takes in a starting latitude and longitude and a distance and finds the bounding box (max lat, min lat, max lon, min lon). There are other, similar, questions here on SO but none of them really answer this and the ones that do are not in C#.

Help.

A: 

If you only have a starting latitude, longitude and altitude then there is no bounding box as you have only defined a single point in space. Any rectangle/bounding box would require at least two points to define it!

Fraser
yeah but that's what the distance is for... to generate the bounding box around that point with distance as radius to the point
samiq
Without the information 'with distance as radius to the point' the question is meaningless as I point out. Distance when using geographic points would usually refer to the altitude (distance from the earth). If all you have are the points lat and lng and no altitude then how can you possibly compute the box to fit it!?
Fraser