Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geofence from point #101

Open
rgonzalez-in opened this issue Feb 13, 2023 · 1 comment
Open

Geofence from point #101

rgonzalez-in opened this issue Feb 13, 2023 · 1 comment

Comments

@rgonzalez-in
Copy link

Hello:

How create a Geofence from a Point with Buffer?

Regards.

@acleon
Copy link

acleon commented Mar 29, 2024

Assuming you want a circular geofence around a point, you need to travel the "buffer" distance in various directions from your start point, then use those points to form a ring polygon. The key object here is the bearing calculator - either BearingSpherical or BearingEllipsoidal.

Here's a Gist showing the approach....

https://gist.github.com/acleon/0237a69dc75a23fb7dc81724c961b1ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants