Add docs for lua profiles
This commit is contained in:
parent
bd068ff2a6
commit
21f15f0a29
@ -104,6 +104,16 @@ max_speed_for_map_matching | Float | Maximum vehicle speed to be as
|
|||||||
max_turn_weight | Float | Maximum turn penalty weight
|
max_turn_weight | Float | Maximum turn penalty weight
|
||||||
force_split_edges | Boolean | True value forces a split of forward and backward edges of extracted ways and guarantees that `process_segment` will be called for all segments (default `false`)
|
force_split_edges | Boolean | True value forces a split of forward and backward edges of extracted ways and guarantees that `process_segment` will be called for all segments (default `false`)
|
||||||
|
|
||||||
|
The following additional global properties can be set in the hash you return in the `setup` function:
|
||||||
|
|
||||||
|
Attribute | Type | Notes
|
||||||
|
-------------------------------------|------------------|----------------------------------------------------------------------------
|
||||||
|
excludable | Sequence of Sets | Determines which class-combinations are supported by the `exclude` option at query time.
|
||||||
|
| | E.g. `Sequence{Set{"ferry", "motorway"}, Set{"motorway"}}` will allow you to exclude ferries and motorways, or only motorways.
|
||||||
|
classes | Set | Determines the allowed classes that can be referenced using `{forward,backward}_classes` on the way in the `process_way` function.
|
||||||
|
restrictions | Set | Determines which turn restrictions will be used for this profile.
|
||||||
|
suffix_list | Set | List of name suffixes needed for determining if "Highway 101 NW" the same road as "Highway 101 ES".
|
||||||
|
|
||||||
### process_node(profile, node, result)
|
### process_node(profile, node, result)
|
||||||
Process an OSM node to determine whether this node is a barrier or can be passed and whether passing it incurs a delay.
|
Process an OSM node to determine whether this node is a barrier or can be passed and whether passing it incurs a delay.
|
||||||
|
|
||||||
@ -272,4 +282,4 @@ durationIsValid
|
|||||||
parseDuration
|
parseDuration
|
||||||
trimLaneString
|
trimLaneString
|
||||||
applyAccessTokens
|
applyAccessTokens
|
||||||
canonicalizeStringList
|
canonicalizeStringList
|
||||||
|
Loading…
Reference in New Issue
Block a user