Search code examples
androidgoogle-mapsnavigationlocationgoogle-polyline

how to get slot according to my location from polyline on map


I am working on turn to turn navigation. I have successfully draw a route between two points. Now i want to show the current slot information on UI. but i am unable to find the current slot of google api response according to my current location. Any help will be appreciated.


Solution

  • You can use steps data to show the instructions to the user on the UI. You can also use Html_instructions for audio with Text to Speech.This can be handled in onLocationChanged().