Some doubts about directions

Hey, I’m developing some app where I used to go with Mapbox Directions API, but I found that Graphopper in my case, calculates better routes for hiking. “Better” means that prefers to use hiking trails (maybe prefers OSM sac_scale : mountain_hiking), Mapbox suggests to use even small pathes which are not for hiking.
So, I decided to try with Graphhopper.

  1. Did I understand correctly that I can use Graphhopper Directions API or run instance of java app in my own infrastructure ?
  2. In order to work with your .jar app I need to download configuration file and osm data and just run app and I will be able to communicate with my frontend app via REST api ?
  3. Doest the standalone .jar app provides the same directions functionality as the java maven library ?

Thank you in advance for reply.

EDIT:
As I mentioned earlier, that Graphhopper genereates better (for me) routes than Mapbox, I realised that when I use Graphhopper Map from https://graphhopper.com/maps/?point=49.239765%2C19.934177&point=49.234686%2C19.936741&locale=pl-PL&vehicle=hike&weighting=fastest&elevation=true&turn_costs=false&use_miles=false&layer=Omniscale then calculated route is the same as mapbox’s (for me not good). But according to your website at: https://www.graphhopper.com/blog/2020/05/31/examples-for-customizable-routing/
when I run your “Demo server” its: http://148.251.46.152:8989/maps/?point=49.239269%2C19.934249&point=49.234912%2C19.935654&locale=en&elevation=true&profile=foot&use_miles=false&layer=OpenStreetMap
as you can see, generated route is different than from first link.

Could you give me some advices how to achieve routing from your demo server ? It’s fully matching my requirements for routing.

Yes

In order to work with your .jar app I need to download configuration file and osm data and just run app and I will be able to communicate with my frontend app via REST api ?

Yes

Doest the standalone .jar app provides the same directions functionality as the java maven library ?

It depends on which library you mean exactly, but I would say yes :slight_smile:

Could you give me some advices how to achieve routing from your demo server ? It’s fully matching my requirements for routing.

You can follow the blog post: https://www.graphhopper.com/blog/2020/05/06/get-started-with-customizable-routing/ and you can further customize your routing. Please note that we always “prefers to use hiking trails” but this is not always the best route because of possible long detours. But with customizable routing this is something that you can easily tweak.

Powered by Discourse