Reputation: 855
I'm trying to build an application with Java where I need to define some custom areas which are not readily available (e.g. jurisdictions for different police stations or fire stations in a city). My goal is to find out that, given an user's location, which jurisdiction that is a part of. I tried the Google Maps API, but couldn't find a solution.
Can anyone please help me find the solution using Google Maps API or any other API.
Upvotes: 0
Views: 473
Reputation: 1311
You can try using PolyUtil.containsLocation(LatLng point, List polygon, boolean geodesic) from Android-map-utils
That given the list of latitude and longitude that defines your custom areas you can check if current location is inside or not.
Upvotes: 1