graphhopper-navigation-example-legacy icon indicating copy to clipboard operation
graphhopper-navigation-example-legacy copied to clipboard

Using the example navigation app with locally hosted graphhopper engine

Open aynalemL opened this issue 2 years ago • 1 comments
trafficstars

Hello everyone,

I've been trying to use the GraphHopper example navigation app with a locally hosted GraphHopper engine, but I'm having trouble figuring out how to set it up correctly. By default, the app uses the base_url https://graphhopper.com/api/1/navigate/, but I want to switch it to my locally hosted engine URL.

My local GH engine runs on http://localhost:8989. However, I don't seem to find the equivalent API endpoint in my locally hosted engine that matches the default base_url.

Could someone please provide guidance on how to configure the app to work with a locally hosted GraphHopper engine?

Thank you!

aynalemL avatar May 26 '23 15:05 aynalemL

It should be localhost:8989/navigate but you won't be able to access it from your smartphone for that either use the same wifi or deploy it to a remote server.

karussell avatar May 26 '23 18:05 karussell