Skip to content

Snap tolerance parameter #356

@BK01

Description

@BK01

Current state:
The BC Route Planner will compute a route along the road network to (or parallel to) coordinates within 1km of the road centre-line [MAX_SNAP_DISTANCE = 1000].

Test case: Destination is approx 1.2km from the road.
https://router.api.gov.bc.ca/directions.json?points=-123.14517%2C49.70719%2C-123.12172%2C49.68690&snapDistance=1200

Future state:

  • Provide a parameter to enable developers to override that number by providing a new value in metres (snapDistance=1200).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions