Voice guided navigation on Graphopper

324 Views Asked by At

I have been looking at how to implement voice guided navigation on android using OSM data, but there seems to be not enough documentation online.Does any one know what it might take to add voice guided navigation to graphhopper routing on android? Thanks

1

There are 1 best solutions below

1
On BEST ANSWER

You need a text to voice engine. I think google offers one for free integrated in Android but there are certainly free alternatives. And then feed it with the appropriate message from the instruction. To find out which instruction comes next you can use the find method:

ghResponse.getInstructionList().find(currentPosition.latitude, currentPosition.longitude)