Override everything in foot profile with a custom_model

Hi, I would like to create a new empty routing profile.

While reading the parsers files (https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/parsers/FootAccessParser.java and https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/parsers/AbstractAccessParser.java) I saw that there are some default setups (sac_scale <= 3, fords forbidden, private paths forbidden, …).

Two questions then:

  • Is it possible to revert every limits set in the parsers with a custom_model ?
  • Is it possible to build a brand new profile without forking the engine and adding our own parser ?

Best regards, Olivier

Is it possible to build a brand new profile without forking the engine and adding our own parser ?

Yes, it is possible with the roads profile which allows access to all roads and you’d limit the speed. Still it is often easier to use an existing vehicle, e.g. like done with hike or car4wd that use a different vehicle as base and customize certain properties with the custom model.

Hi, thanks for you answer !

If I try to use roads profile with your API I get

"For your account the profile parameter can only be one of [car, car_delivery, car_avoid_ferry, car_avoid_motorway, car_avoid_toll, truck, small_truck, small_truck_delivery, scooter, scooter_delivery, bike, mtb, racingbike, foot, hike, as_the_crow_flies] but was roads"

Is the roads profile only available in internal custom_models ?

Yes, currently it is not public (per default) in the hosted API. What are you trying to achieve exactly?

I would like to create a profile that let you go through all segments without limitation, is that possible ?

In the top of that, I would like a way to fully customize the method collect (https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/parsers/FootPriorityParser.java). This seems impossible without creating my own parser.

I would like to create a profile that let you go through all segments without limitation, is that possible ?

Only with the roads profile. Please reach out to support with the account for which it should be enabled and also what exact use case you have in mind so that we better understand what could be missing from the other profiles.

This seems impossible without creating my own parser.

Yes, depending on what you need this might be the case.