多个纬度/经度点的半径 [英] Radius of multiple latitude/longitude points

查看:125
本文介绍了多个纬度/经度点的半径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序将纬度/经点数组作为输入.我需要对该数组进行检查,以确保所有点都在一定半径内.因此,例如,我允许的最大半径为100英里.给定一个经度/纬度数组(来自MySQL数据库,可能是10点可能是10000),我需要弄清楚它们是否都适合半径100英里的圆.

I have a program that takes as input an array of lat/long points. I need to perform a check on that array to ensure that all of the points are within a certain radius. So, for example, the maximum radius I will allow is 100 miles. Given an array of lat/long (coming from a MySQL database, could be 10 points could be 10000) I need to figure out if they will all fit in a circle with radius of 100 miles.

Kinda苦恼于如何解决这个问题.任何帮助将不胜感激.

Kinda stumped on how to approach this. Any help would be greatly appreciated.

推荐答案

查找

Find the smallest circle containing all points, and compare its radius to 100.

这篇关于多个纬度/经度点的半径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆