Our option (bool) | Mapserver | xServer 2 |
---|---|---|
[x] Use motorway | IRouteOptions2::put_RouteWithoutAutoroute(section, [true|false]) Mapserver SDK documentation: "For the VARIANT_TRUE value the use of motorways is not permitted." | Use penaltiesByNetworkClass? NC0? Which penalty? |
[x] Use residential roads | IDrivingOptions_5_4_0_0::put_ResidentsOnlyFactor(section, factor) Mapserver SDK documentation: "factor Modifier for streets that are restricted to residents" "The values range from -99 (strong preference) to 0 (normal rating) to 2500 (strong avoidance). 2501 can be used to block streets that are restricted to residents completely. " We do use the default value (0) when the option is checked and 2500 when the option is not checked. |
Use penaltiesByNetworkClass? Which NC? |
[x] Use ferries | IDrivingOptions_5_4_0_0::put_FerryFactor(section, factor) Mapserver SDK documentation: "Modifier for ferries." "The values range from -99 (strong preference) to 0 (normal rating) to 2500 (strong avoidance). 2501 can be used to block ferries completely." We do use 0 when the option is checked and 2500 when the option is not checked. | Use boatPenalty? |
Code: Select all
{
"routingProfile": {
"course": {
"network": {
"penaltiesByNetworkClass": {
"penalties": [
THIS_VALUE_HERE_QUESTIONMARK,
10,
15,
35,
40,
90,
100,
100
]
}
}
}
}
}
"[x] Use motorway" = 0 for the first network class
"[ ] Use motorway" = 2500 for the first network class
[x] Use residential roads
Is this correct to use routingProfile::course::network::penaltiesByNetworkClass::penalties as well? What is the network class for this case?
[x] Use ferries
Code: Select all
{
"routingProfile": {
"course": {
"combinedTransport": {
"boatPenalty": "THIS_VALUE_HERE_QUESTIONMARK"
}
}
}
}
"[x] Use ferries" = 0
"[ ] Use ferries" = 2500