Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

lobobabysaurus/PointDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PointDetector

Detects what state a given point is located in

It loads in border and name data about states from a separate JSON file.

When supplied a point it first uses rectangulized versions of all state borders to see what states may be potential matches. Then it looks at all of the borders using ray-tracing for the potential matches.
If there is a match it returns a plain text string representation in an HTTP response. Otherwise it returns a plain text error message.
A point on any borders is considered not be within a state.

Server can be run with

python3 PointDetector.py

Main server file is PointDetector.py, all other relevant classes are in the geo module, and unit tests are in the tests module

Documentation has been generated using epydoc and can be perused by opening docs/index.html in a browser

About

Detects what state a given point is located in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published