integration icon indicating copy to clipboard operation
integration copied to clipboard

Location ID link broken

Open TB-SE opened this issue 2 years ago • 8 comments

The location ID link in the documentation redirects to a 404 page. Can't find the information anywhere on Trafiklab. Is there anywhere else I can look?

TB-SE avatar Jul 06 '23 21:07 TB-SE

Ditto. I looked around but I can't find the right link to find Location IDs.

adamghorne avatar Jul 16 '23 18:07 adamghorne

Same here :-/

IZZE2000 avatar Aug 12 '23 17:08 IZZE2000

Same here :-/

Got it working by using the "SL API (alternative method)" https://hasl.sorlov.com/locationid

IZZE2000 avatar Aug 13 '23 05:08 IZZE2000

They have removed the api-console on the website so only alternate method works now. Will update documentation

DSorlov avatar Feb 07 '24 08:02 DSorlov

The new integration lets you search for location directly during setup. Alternatively you can use this api:

curl https://transport.integration.sl.se/v1/sites\?expand\=true >> stations.json

No api key required, the response contains stop_areas

  {
    "id": 9961,
    "gid": 9091001000009961,
    "name": "Bullerholmsgränd övre",
    "lat": 59.2803383565504,
    "lon": 17.8931992090059,
    "stop_areas": [
      16268
    ],
    "valid": {
      "from": "2012-06-23T00:00:00"
    }
  },

This can be closed.

BoKKeR avatar Apr 20 '25 06:04 BoKKeR