Dynamic Packaging | Destination Management
Destination Object
{
"link": "dddddd",
"names": { "de": "Bad Tölz", "en": "Bad Toelz" },
"location": { "lat": 47.760799, "lng": 11.557608 },
"outgoingRouteCount": { "hiking": 3, "cycling": 1 }
}outgoingRouteCount (number of outgoing routes per route icon) is only present in GET /destination/{destination}.
A) Create destination
Create a new destination and saves it in the default destination library. If destination already exists within a radius of 5km, it will return the existing destination.
curl --location --request POST 'https://services.schneidergeo.com/content/dynamic-packaging/destination' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"names": {
"de": "Bad Tölz",
"en": "Bad Toelz"
},
"location": {
"lat": 47.760799,
"lng": 11.557608
}
}'Response: the created Destination.
Errors: 404 No default destination library configured if the account has no destination library.
B) List/search destinations
Returns all destinations of your account. With the optional search parameter the list is filtered by name (type-ahead search, substring match on the name in any language).
Response: array of Destination (without outgoingRouteCount).
Notes:
Search terms shorter than 3 characters return an empty list.
A search returns at most 20 results.
C) Read destination
Returns a single destination including the number of outgoing routes per route icon.
Response: Destination with outgoingRouteCount.
Errors: 404 Destination not found.
Last updated

