当前位置: 动力学知识库 > 问答 > 编程问答 >

GPS bounding box around 2 points

问题描述:

I have 2 GPS locations with a latitude and a longitude.

I want to create a bounding box, which incorporates both these points, plus some number of kilometers of padding on either side (for example, a 10km bounding box which includes both point X and point Y).

I have seen implementations for bounding boxes around 1 singular GPS location, but I have not seen any implementations which incorporate 2 GPS locations.

Can somebody help with an implementation, or the name of a solution?

分享给朋友:
您可能感兴趣的文章:
随机阅读: