Check If A Gps Lat/lng Point Lies On A Road In Google Maps
I'm developing a navigation app in android. I want to prompt the user when he goes off-road. So, if I have a GPS Lat/Lng point, is it possible to determine if that point lies on a
Solution 1:
You can use the isLocationOnPath()
function for that. You have to add the dependency
dependencies {
compile'com.google.maps.android:android-maps-utils:0.4+'
}
in your app gradle file. For more information http://googlemaps.github.io/android-maps-utils/#start
Post a Comment for "Check If A Gps Lat/lng Point Lies On A Road In Google Maps"