graphhopper / graphhopper-navigation-example-legacy

GraphHopper Navigation as App
https://www.graphhopper.com/open-source/
Apache License 2.0
93 stars 49 forks source link

Using the example navigation app with locally hosted graphhopper engine #55

Open aynalemL opened 1 year ago

aynalemL commented 1 year ago

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!

karussell commented 1 year ago

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.