项目作者: sam-drew

项目描述 :
Geofencing with Python.
高级语言: Python
项目地址: git://github.com/sam-drew/picket.git
创建时间: 2017-10-30T11:22:08Z
项目社区:https://github.com/sam-drew/picket

开源协议:GNU General Public License v3.0

下载


Picket

Build status

Picket is a Python library which aims to make geofencing calculations much easier.

The main object defined in Picket is a Fence. A Fence can have points added to it, and as soon as there are >= 3 points, this forms a boundary, and you can calculate if a given (x, y) or (lat, long) point is within this boundary by using Fence.check_point(point).
The order in which you add points to a Fence object is important; it does not automatically find the nicest, neatest polygon from a set of points.

Will add some docs on the maths soon, uses Cramers rule to find intersections between lines.