Adding a custom profile

Dear All,

currently i am looking for some tutorials ou sample projects that tried to implement a new profile. (ex : cloning the car-driving profile with some enhacement)

my purpos is getting a light reponse with only the distance and time, without all the gemetries and directions.

best

Hi,

easy, just specify instructions=false and geometry=false:

https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post

Other than that, there is no tutorial on creating your own profiles. You’ll need to dig into the code yourself. But the existing profile implementations should give you a very good idea of what’s necessary.

1 Like