https://github.com/victorman/InsideAreaAndroid
Uses Classes: LocationListener, GoogleMap, Polygon, LatLng.
Today's app returns to google maps to determine if the gps location is in a given boundary. It implements a ray casting algorithm to determine if a point is within a polygon. I would have expected this to be built into the google maps API's library, but all of the solutions I found to do this suggest there is not. However, implementing the algorithm isn't very complex.
No comments:
Post a Comment