{"id":16165058,"url":"https://github.com/chrberger/geofence","last_synced_at":"2025-03-18T23:30:37.699Z","repository":{"id":150058330,"uuid":"262396073","full_name":"chrberger/geofence","owner":"chrberger","description":"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.","archived":false,"fork":false,"pushed_at":"2020-05-10T11:27:00.000Z","size":255,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T12:55:45.085Z","etag":null,"topics":["coordinate","coordinates","cpp11","cpp14","cpp17","geofence","geofences","geofencing","header-only","platform-independent","single-file","wgs84"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrberger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-08T18:15:01.000Z","updated_at":"2024-08-28T12:49:54.000Z","dependencies_parsed_at":"2023-06-04T14:15:28.926Z","dependency_job_id":null,"html_url":"https://github.com/chrberger/geofence","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fgeofence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fgeofence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fgeofence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrberger%2Fgeofence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrberger","download_url":"https://codeload.github.com/chrberger/geofence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244325073,"owners_count":20435033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coordinate","coordinates","cpp11","cpp14","cpp17","geofence","geofences","geofencing","header-only","platform-independent","single-file","wgs84"],"created_at":"2024-10-10T02:49:08.640Z","updated_at":"2025-03-18T23:30:37.693Z","avatar_url":"https://github.com/chrberger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geofence\n\n![C/C++ CI](https://github.com/chrberger/geofence/workflows/C/C++%20CI/badge.svg) [![Build Status](https://travis-ci.org/chrberger/geofence.svg?branch=master)](https://travis-ci.org/chrberger/geofence) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\ngeofence 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.\n\ngeofence 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).\n\nThis library is partially based on the [work](https://wrf.ecse.rpi.edu/Research/Short_Notes/pnpoly.html) from W. Randolph Franklin released under MIT license.\n\n\n## Table of Contents\n* [Features](#features)\n* [Dependencies](#dependencies)\n* [Contributing](#contributing)\n* [License](#license)\n\n\n## Features\n* Written in highly portable and high quality C++11\n* **Available as header-only, single-file distribution - just drop [geofence.hpp](https://raw.githubusercontent.com/chrberger/geofence/master/geofence.hpp) into your project, `#include \"geofence.hpp\"`, and compile your project with a modern C++ compiler (C++11 or newer)**\n* The polygon and position are passed to the functions as [`std::array`](http://en.cppreference.com/w/cpp/container/array) so that this library integrates well with other math libraries (e.g., Eigen).\n\n\n## Dependencies\nNo dependencies! All you need is a C++11-compliant compiler as the project ships the following dependencies as part of the source distribution:\n\n* [Unit Test Framework Catch2](https://github.com/catchorg/Catch2/releases/tag/v2.12.1) - [![License: Boost Software License v1.0](https://img.shields.io/badge/License-Boost%20v1-blue.svg)](http://www.boost.org/LICENSE_1_0.txt) - [Source](https://github.com/chrberger/stringtoolbox/blob/master/test/catch.hpp)\n\n\n## Installation\n### Installation as single-file, header-only library\nWGS84toCartesian is provided as header-only, single-file library as well - just drop [WGS84toCartesian.hpp](https://raw.githubusercontent.com/chrberger/WGS84toCartesian/master/WGS84toCartesian.hpp) into your project, `#include \"WGS84toCartesian.hpp\"`, and compile your project with a modern C++ compiler (C++11 or newer)\n\n\n## Projects using geofence\nIf your project is using geofence, just let us know :-)\n\n\n## Contributing\nWe are happy to receive your PRs to accelerate libcluon's development; before contributing, please take a look at the [Contribution Documents](CONTRIBUTING.md).\n\n\n## License\n* This project is released under the terms of the MIT License - [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrberger%2Fgeofence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrberger%2Fgeofence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrberger%2Fgeofence/lists"}