Geo-Fence (Radial)

Define a geofence. Check if GPS coordinates are within that Geofence

Algorithmia Platform License · Internet Access

Run an Example

Install & Use

Use

curl -X POST -d '
{
	"boundary": {
		"center": {
			"gps": {
				"lat": 48.8640493,
				"lon": 2.3310526
			}
		},
		"radius": {
			"meters": 70
		}
	},

	"locations": [{
		"lat": 48.8640493,
		"lon": 2.3310526
	}, {
		"lat": 48.8640493,
		"lon": 2.3310526
	}, {
		"lat": 48.8640493,
		"lon": 2.3310526
	}, {
		"lat": 48.8640492,
		"lon": 2.3310526
	}]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/vagrant/AreaPolling/0.1.2