Detecting whether a GPS coordinate falls within a polygon on a map

前端 未结 8 1326
野趣味
野趣味 2020-12-07 10:17

As stated in the title, the goal is to have a way for detecting whether a given GPS coordinate falls inside a polygon or not.

The polygon itself can be either convex

8条回答
  •  孤街浪徒
    2020-12-07 10:59

    Assuming you handle the case of wrapping around the meridian and crossing the equator (by adding offsets) - can't you just treat this as a simple 2d point in polygon ?

提交回复
热议问题