satish123
satish123

Reputation: 541

Using polygon class in google maps without having maps view

I am developing an Android application where I need to check whether a GPS point lie inside a region (or polygon). I am therefore planning to use Polygon class provided by Google Maps. But, this require a map view to construct a polygon. I don't want to use a map view. Kindly tell if there is a class or some API by which polygon can be used. I have come to know of a PolyUtil class but it requires importing another library.

Thanks, Arpit

Upvotes: 0

Views: 854

Answers (1)

Marian Paździoch
Marian Paździoch

Reputation: 9093

Use this lib android-maps-utils:

PolyUtil.containsLocation(LatLng point, java.util.List<LatLng> polygon, boolean geodesic)

Upvotes: 1

Related Questions