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

Content | 2. Routes

Create, Read, Update, Delete and List Routes in a geodata library. Methods may require your account ID and API Key. In the curl examples on this page:

  • Replace CCCCCC or {account} with your account ID. See Overview to find your account ID.

  • Replace xxxxxx-xxxxxx-xxxxxx-xxxxxx with the API key. See Overview to find your API key.

  • Replace {link} with the route ID (from the route's metadata, the create response, or see List Routes).

A) Create Route

Create a route with a Custom ID. The customId is the stable id for this route when you update, delete or reference it from other GUIBO APIs (for example an On-Demand Release or a Guidebook).

Prerequisite: an existing geodata library with a Custom ID (library.customId, see Create Geodata Library), or an existing Guidebook with a Custom ID (guidebook.customId, see Create Guidebook) and at least one stage (see Content | 7. Stage).

Create Route in a Library

  • Set library.customId in the request to that library's Custom ID. In the following example the Custom ID is MY_ROUTES_LIB.

  • Required in body: account ID, library.customId , names, icon, and descriptions.

  • Optional fields: attributes (altitudeUp / altitudeDown in m, routeDistance in km, time in h), waypoints, remark, and color. If attributes values are supplied, GUIBO uses these values for the route.

curl --location --request POST 'https://services.schneidergeo.com/content/geodata/route' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account":"CCCCCC",
    "library": {
        "customId":"MY_ROUTES_LIB"
    },
    "customId":"CYCLE_23143534",
    "remark":"This is a test route",
    "names": {
        "en": "Testroute in Arnhem",
        "de": ""
    },
    "descriptions": {
        "en": "",
        "de": ""
    },
    "color": "1c21e1",
    "icon": {
            "name": "hiking"
    },
    "attributes": {
        "altitudeUp":"210", 
        "altitudeDown":"300", 
        "routeDistance":"12.5",
        "time":"2.5" 
    },
    "waypoints": [
        {
            "lat": 51.96252,
            "lon": 5.88772,
            "ele": 13
        },
        {
            "lat": 51.96253,
            "lon": 5.88772,
            "ele": 13
        },
        {
            "lat": 51.9628,
            "lon": 5.88796,
            "ele": 13
        },
        {
            "lat": 51.96359,
            "lon": 5.88833,
            "ele": 14
        },
        {
            "lat": 51.96438,
            "lon": 5.88871,
            "ele": 11
        },
        {
            "lat": 51.96495,
            "lon": 5.88885,
            "ele": 9
        },
        {
            "lat": 51.96552,
            "lon": 5.889,
            "ele": 9
        }
        
    ]
}'

Create Route in a Guidebook

  • Set guidebook.customId in the request to that guidebook's Custom ID.

  • Required in body: account ID, guidebook.customId, the target stage's category.link, names, icon, and descriptions.

  • Optional fields are the same as creating routes in a Library

Supported Icon Names for routes:

  • Motorbike

  • Sledding

  • Ski touring

  • Hiking

  • Cycling

  • Ferry route

  • Bus tour

  • Canoeing

  • Mountaineering

  • Snowshoeing

  • Cross-country skiing

  • Running

  • Driving

  • Transfer

  • Walking

  • Segment

  • E-bike

  • Nordic walking

  • Mountain biking

B) Read Route

Read a Route using its link .

C) Update Route

Update a route using the same request body as Create. Put the route ID in the URL as {link} and your account ID in the body.

D) Delete Route

Delete a route using your account ID and the route's Custom ID. Delete moves the route to trash. Add the query parameter force=true to the URL to permanently delete it.

E) List Routes

List Routes in a library using your account ID and the library's Custom ID. List returns a lightweight metadata for each route, including: link, customId, names, and lastUpdate. To retrieve full details, content, and geometry for a specific route, see Read Route.

Last updated