Create geofence zones via the dashboard or API. Mobile SDKs sync zones to devices and detect enter/exit events on-device — no GPS data leaves the phone.
Pick your platform. Install, add a zone, start detecting.
Install the plugin:
$ flutter pub add polyfenceInitialize, add a zone, start tracking:
import 'package:polyfence/polyfence.dart';
await Polyfence.instance.initialize();
final zone = Zone.circle(
id: 'office',
name: 'London Office',
center: PolyfenceLocation(51.5074, -0.1278),
radius: 200,
);
await Polyfence.instance.addZone(zone);
await Polyfence.instance.startTracking();
// Listen for enter/exit events
Polyfence.instance.geofenceEvents.listen((event) {
print('${event.type} zone: ${event.zone.name}');
});Draw circles and polygons on the map, import GeoJSON, or create zones via the REST API.
Mobile SDKs download zone data automatically. Works offline once synced. No manual sync code needed.
Geofence events fire on-device using the native Kotlin/Swift engine. No cloud calls at runtime. Your app handles events however you want.
Typed client for Node.js and browsers.
Type-hinted client for backend & scripts.
Strongly typed client for services.
npm i -g @polyfence/cli — list, create, export zones from the terminal. CI/CD and batch operations.
x-api-key header. Keys are scoped ( zones:read, zones:write, zones:delete ) and stored as SHA-256 hashes.