Luther Luther - 2 years ago 218
Android Question

Geofences shapes, API v2 android

reading the android and google maps Api v2, I've just found geofences defined by radius/circles.

I was wondering if there is a way to create custom shapes i.e. rectangles or any other irregular shapes.

I was planing to geofence the are of a park.

If custom shape geofencing is possible, please let me know the topics to study.

Answer Source

As of 3.1.36 there is only Geofence.Builder.setCircularRegion, so it's not possible to define other shapes, but the API looks like it could be extended easily in the future by the Location team in Google.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download