Create custom vehicle

Hello,

We are developing an application where we need to use custom vehicles with different parameters (weight, height, width…) and calculate routes with them. How can we create those vehicles the parameters specified?

Also, what parameters of vehicle (weight, height, width…) are taken into account when calculating the route (i.e. if a particular vehicle weight exceeds the maximum allowed weight of a road in the map the vehicle should not go through that road)? How can we know those maximum values of a particular road from the maps (maximum weight, height or width allowed for a vehicle to go through an edge)?

Thanks

Look into DataFlagEncoder, how you can read and save additional information. Especially the handleWayTags and defineWayBits methods. You can create your own flagEncoder to save these information. Also you can take them into account with your own weighting.

If you have any more questions, just write them down.

Also have a look here: Load custom weights from multiple external sources

2 Likes

Thank you! I will take a look at it :slightly_smiling_face:

@david.casado did it work?