> For the complete documentation index, see [llms.txt](https://docs.guibo.travel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guibo.travel/developers/dynamic-packaging-api/dynamic-packaging-or-route-management.md).

# 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.

```json
{
    "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.

```bash
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/routes/from/destination/dddddd' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'
```

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.

```bash
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/routes/from/hotel/hhhhhh' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'
```

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.

```bash
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/routes/from/coordinate/47.760799/11.557608' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'
```

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guibo.travel/developers/dynamic-packaging-api/dynamic-packaging-or-route-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
