Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Farkas authored Nov 8, 2019
1 parent d76ae49 commit 016c33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ where `{api_url_placeholder}` is your URL referring to your designated NEXOGEN G

The plug-in can be used in the following way:

```js=
```javascript
L.Routing.control({
addWaypoints: true,
waypoints: [
L.latLng(47.46072, 18.95798),
L.latLng(46.2530102, 20.1414253)
],
router: L.Routing.nexogen({
baseUrl: '{api_url_placeholder}',
baseUrl: 'http://localhost:8010/proxy', // url to local-cors-proxy or backend API on the same domain to avoid CORS issues
bearerToken: '{api_token_placeholder}',
vehicleProfile: 'Truck_40t', // Car, etc.
}),
Expand Down

0 comments on commit 016c33a

Please sign in to comment.