You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
Leaflet Routing Machine / HERE
2
2
=====================================
3
3
4
-
5
4
Extends [Leaflet Routing Machine](https://github.com/perliedman/leaflet-routing-machine) with support for [Here](https://developer.here.com/rest-apis/documentation/routing/topics/overview.html) routing API.
6
5
7
6
Some brief instructions follow below, but the [Leaflet Routing Machine tutorial on alternative routers](http://www.liedman.net/leaflet-routing-machine/tutorials/alternative-routers/) is recommended.
@@ -29,4 +28,18 @@ L.Routing.control({
29
28
Note that you will need to pass a valid Here app code and app id to the constructor.
30
29
31
30
32
-
This is forked version based on trailbehind(https://github.com/trailbehind/lrm-Here)
31
+
This is forked version based on [trailbehind](https://github.com/trailbehind/lrm-Here)
32
+
33
+
## RouteRestriction `routeRestriction`
34
+
Since the 1.1.0 version, you can calculate the route witch attributes of the route. To achieve this set `generateMode: true` and fill options under `routeRestriction` object using properties from below.
35
+
36
+
| Property | Type | Default | Options |
37
+
| ------ | ----- | ------- | ------- |
38
+
| avoidHighways| boolean |||
39
+
| avoidTolls | boolean |||
40
+
| avoidFerries | boolean |||
41
+
| vehicleType | string | car |[Available options](https://developer.here.com/documentation/routing/topics/resource-param-type-routing-mode.html#type-transport-mode)|
0 commit comments