Skip to content

A small and efficient single-file, header-only library written in modern C++ library to test whether a coordinate is inside a polygon to realize, for instance, WGS84 geofencing.

License

Notifications You must be signed in to change notification settings

chrberger/geofence

Repository files navigation

geofence

C/C++ CI Build Status License: MIT

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.

Table of Contents

Features

  • 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).

Dependencies

No dependencies! All you need is a C++11-compliant compiler as the project ships the following dependencies as part of the source distribution:

Installation

Installation as single-file, header-only library

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)

Projects using geofence

If your project is using geofence, just let us know :-)

Contributing

We are happy to receive your PRs to accelerate libcluon's development; before contributing, please take a look at the Contribution Documents.

License

  • This project is released under the terms of the MIT License - License: MIT

About

A small and efficient single-file, header-only library written in modern C++ library to test whether a coordinate is inside a polygon to realize, for instance, WGS84 geofencing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published