Skip to content

sam-drew/picket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.