Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 706 Bytes

README.md

File metadata and controls

12 lines (6 loc) · 706 Bytes

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.