#MapRouting simple way to rout to point
add this cod to project and init params
In Android Studio, this line ti app\build.gradle file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
In Android Studio, this line ti app\build.gradle file:
dependencies {
compile 'com.github.gholamfarkhani:MapRouting:1.5.0'
}
sample code for use
new MapDirection.Builder()
.setOriginPoint(new LatLng(36.334068, 59.546783))
.setDestinationPoint(new LatLng(36.337592, 59.469463))
.setGoogleMap(mMap)
.build();
good luck