geofence is a small and efficient library written in modern C++ library to test whether a coordinate is inside a polygon to realize, for instance, WGS84 geofencing.
geofence is available as single-file, header-only library - just drop geofence.hpp into your project, #include "geofence.hpp", and compile your project with a modern C++ compiler (C++11 or newer).
This library is partially based on the work from W. Randolph Franklin released under MIT license.
- Written in highly portable and high quality C++11
- Available as header-only, single-file distribution - just drop geofence.hpp into your project,
#include "geofence.hpp"
, and compile your project with a modern C++ compiler (C++11 or newer) - The polygon and position are passed to the functions as
std::array
so that this library integrates well with other math libraries (e.g., Eigen).
No dependencies! All you need is a C++11-compliant compiler as the project ships the following dependencies as part of the source distribution:
WGS84toCartesian is provided as header-only, single-file library as well - just drop WGS84toCartesian.hpp into your project, #include "WGS84toCartesian.hpp"
, and compile your project with a modern C++ compiler (C++11 or newer)
If your project is using geofence, just let us know :-)
We are happy to receive your PRs to accelerate libcluon's development; before contributing, please take a look at the Contribution Documents.