I am retrieving the latitude and longitudes from the database and want to check if those lie on my route(found from google direction API)
I was thinking of using geofencing but I want to show a marker of the latitude and longitude on my route only
I am retrieving the latitude and longitudes from the database and want to check if those lie on my route(found from google direction API)
I was thinking of using geofencing but I want to show a marker of the latitude and longitude on my route only
you can use maputils by google
if (PolyUtil.isLocationOnPath(latLng, rectLine.getPoints() , false, 500 )) {
// location in on route
}