Geofencing API Coordinates Problem

Hi there,

I’m using “Geofencing API” for geofencing. I created a Geofence for e.g. Leamington SPA, UK and I got a array list of coordinates. Then I randomly pick a address which is within my Geofence e.g. Royal Leamington Spa Bowling Club from google maps.

When I loop through the Array List of my Geofence with condition If my random location Coordinates == Array List return those Coordinates. But it returns me nothing which means my Random Location coordinates are not in the Array List of Geofence.

Can someone help me out.

Regards,
Sajid Saddique

If I understand correctly you are comparing location coordinates to your geofence vertices coordinates.

To check if the location is within geofence or not use Report request: https://developer.tomtom.com/geofencing-api/geofencing-api-documentation-report-service/report-request