route360 / r360-js

Route360° JavaScript API (now Targomo)
https://www.targomo.com/developers/
MIT License
174 stars 37 forks source link

Add maxTransfers to configuration #47

Open gerbsen opened 6 years ago

gerbsen commented 6 years ago

Short summary: The new option is maxTransfers in the transit travel options. If the option is not present, the amount of transfers is unlimited. The option is ignored for other travel modes.

Valid values: [0..127]

Example:

...
  "sources": [
    {
      "lng": -73.976636,
      "id": "id1",
      "lat": 40.608155,
      "tm": {
        "transit": {
          "recommendations": 0,
          "frame": {
            "date": 20161020,
            "duration": 18000,
            "time": 55852
          },
          "maxTransfers": 2
        }
      }
    }
...
abenrob commented 6 years ago

@gerbsen this is for all requests (polygon, route and time)?

gerbsen commented 6 years ago

Oui.