latitude / logitude api

Nicky Iversena year ago

Hi when i use API with token i get this info:

{
  "id": 8,
  "attributes": {
    "speedUnit": "kmh",
    "timezone": "Europe/Copenhagen"
  },
  "name": "Nicky Test",
  "login": null,
  "email": "xxxxxx@gmail.com",
  "phone": null,
  "readonly": true,
  "administrator": false,
  "map": null,
  "latitude": 32.006905,
  "longitude": 4.96686,
  "zoom": 3,
  "twelveHourFormat": false,
  "coordinateFormat": null,
  "disabled": false,
  "expirationTime": null,
  "deviceLimit": -1,
  "userLimit": 0,
  "deviceReadonly": false,
  "limitCommands": false,
  "disableReports": false,
  "fixedEmail": false,
  "poiLayer": null,
  "totpKey": null,
  "temporary": false,
  "password": null
}

but the right lat / long is:
Skærmbillede 2024-06-15 223057.jpg

Have i done anything wrong - or do i need some config?

Anton Tananaeva year ago

It seems like you're using the wrong API endpoint.

Nicky Iversena year ago

Could you tell me the right one?

http://xxxxx/api/socket/session?token=?

Anton Tananaeva year ago

Here's the documentation:

https://www.traccar.org/traccar-api/