Detta inlägg är gammalt och kan innehålla inaktuell information.

Nearby stops

Dear TrafikLab

I am working in a Danish real estate company that provides a market place for vacant commercial space. I am working on porting a feature from Lokalebasen.dk to our Swedish website, lokalbasen.se, that allows our users to see the distance to different kinds of public transportation for a given office.

You can see an example here: https://www.lokalebasen.dk/leje/kontorlokaler/2...

Click the "Område" tab under the pictures.

However, from what I can tell you only have an API for listing nearby busstops in Stockholm, called "SL Närliggande hållplatser".

If I wanted to query on any arbitrary WGS coordinates in Sweden for nearest bus, train or similar, would I be able to do that through Trafiklab.se? And can you give me a hint on which API to explore?

Kommentarer

  • Hello!

    Yes, You should use the method StationsInZone - Hitta stationer och hållplatser i närheten av en koordinat (find stations and stops closed to coordinates).

    You find this method in the API Resrobot - Sök resa.
    Documentation is found at: https://www.trafiklab.se/api/resrobot-sok-resa/...

    Best regards, Åke

    Team Trafiklab

Kommentera eller skriv ett nytt inlägg

Ditt namn och inlägg kan ses av alla. Din e-post visas aldrig publikt.