How To Find If A Geo-location Is On A Road Between Two Points?
I am a student working on an android application related to navigation trying to learn android programming. The application needs to search the geo-locations (latitude,longitude) a
Solution 1:
There's already a lib for this: use isLocationOnPath with the polyline
you are getting from directions api response.
Solution 2:
Build a LatLngBound using the two points and pass in the geolocation point you want to check into LatLngBounds.contain().
Post a Comment for "How To Find If A Geo-location Is On A Road Between Two Points?"