For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic Packaging | Route Management

Route Sample Object

A route sample is a lightweight representation of a route, intended for drawing an overview on a map. It contains only two waypoints (start and end), or three waypoints (start, middle, end) for circular routes whose end lies within 500 m of the start.

{
    "link": "rrrrrr",
    "names": { "de": "Isarweg nach Lenggries", "en": "Isar trail to Lenggries" },
    "type": "hiking",
    "startDestination": { "link": "dddddd", "names": { "de": "Bad Tölz" }, "location": { "lat": 47.7608, "lng": 11.5576 } },
    "endDestination":   { "link": "eeeeee", "names": { "de": "Lenggries" }, "location": { "lat": 47.6826, "lng": 11.5747 } },
    "waypoints": [
        { "lat": 47.76080, "lon": 11.55761, "ele": 0 },
        { "lat": 47.68260, "lon": 11.57470, "ele": 0 }
    ]
}
  • type is one of walking, cycling, driving, transfer (derived from the route icon; omitted if the icon is not mapped).

  • endDestination is omitted if the route does not end at a destination. startDestination is omitted when the route was found via coordinate search (section I).

A) Outgoing routes from a destination

Returns all routes that start at the given destination. Each route sample contains the startDestination and, if the route ends at a destination, the endDestination. Use the endDestination.link to call this endpoint again for the next day.

Response: array of Route sample.

Errors: 404 Destination not found.

B) Outgoing routes from a hotel

Shortcut for F) followed by G): determines the destination nearest to the hotel and returns the routes starting at that destination.

Response: array of Route sample.

Errors: 404 Hotel not found, 404 No destination found.

C) Outgoing routes from a coordinate

Returns all routes of your route libraries (including shared libraries) whose first waypoint lies within a 5 km square around the given coordinate. Use this when a route ends at a place that is not a destination (route sample has no endDestination): pass the last waypoint of that route to find possible continuations.

Latitude and longitude are passed as path segments in decimal degrees.

Response: array of Route sample. The samples contain neither startDestination nor endDestination.

Last updated