The Google Maps Directions API is a service that calculates directions between locations. You can search for directions for several modes of transportation, including transit, driving, walking, or cycling.
- Pick source & destination locations through place auto complete widget.
- Click on direction icon.
- Get the shortest route path.
Make sure you have enabled following api services in your developer console.
- Google Maps Android API
- Google Places API for Android
- Google Maps Directions API
1.Replace your google map api key on google_maps_api.xml file
.
2.Replace google places api key in MapActivity.java
file with GOOGLE_PLACES_API_KEY
variable.
MIT
Free Software, Hell Yeah!