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

Example requests

MOVE Backend APIs

This site shows example request between your project backend and Move SDK API.

Create a new user

Use your Move SDK Project Id and your API Key as Basic Auth to register a new User. The userId may be any arbitrary string, only : is forbidden. The maximum length of userId is 100 characters.

Request:

POST https://sdk.dolph.in/v20/user
content-type: application/json
Authorization: Basic {PROJECT_ID}:{API_KEY}

{
  "userId": "string"
}

Response:

{
  "accessToken": "{ACCESS_TOKEN}", // allows communication with MOVE SDK back-end
  "refreshToken": "{REFRESH_TOKEN}", // allows Move App to renew access token
  "userId": "{USER_ID}", 
  "audience": "{NAME_OF_API_KEY}", 
  "projectId": {PROJECT_ID}
}

Initialize your Move SDK App with these tokens.

Create a new user (authCode)

Use your Move SDK Project Id and your API Key as Basic Auth to register a new User. The userId may be any arbitrary string, only : is forbidden. The maximum length of userId is 100 characters.

Request:

Response:

Fetch user timeline

Fetch user timeline easily with:

Request:

Response:

Every timeline item has the following properties:

  • projectId: Move SDK Project ID

  • userId: Id of specific User

  • startTs: start timestamp as an ISO 8601 date time

  • endTs: end timestamp as an ISO 8601 date time

  • type: Mode of transport

Fetch specific timeline items

Convert the startTs of a given timeline item to a UNIX timestamp to fetch a specific timeline item. For example,

  • in the user timeline you find a timeline item with startTs in UTC time

  • Conversion into unix timestamp (UTC) is "1649780700" - this is your START_TS for fetching the specific timeline item.

  • Please note, if you want to display the trip in human readable form, you may want to translate the startTs to the local timezone (which you can find in "startLocation / timeZone"; e.g. "Europe/Vienna").

Request:

Response:

Fetch way points

Some timeline item types like CAR and CYCLING return way points.

Request:

Response:

Important: The Move SDK always tries to match GPS points to an existing road. For the original way points withWayPointInfo is required.

Label item

Relabel existing timeline items with a PATCH request:

Possible mode of transports:

  • UNKNOWN

  • DRIVING

  • TRAIN

  • TRAM

  • CAR

  • METRO

  • FAKETRIP

  • WALKING

  • IDLE

  • CYCLING

The response to this request is the existing timeline item with the new type.

Delete item

Delete a single timeline item.

Fetch last user location

Every user has 4 last locations, in different contexts:

  • car-end: last position of his car

  • timeline-end: end location of last timeline item

  • trip-position: updates live during a trip

  • user-pos: updates user walking position

Response:

Last updated