• @cheese_greater@lemmy.world
    link
    fedilink
    0
    edit-2
    9 months ago

    Can this be done for basically… any transit? How do you search for api url or stream feed? Its not anything like RSS is it?

    • Justas🇱🇹
      link
      fedilink
      09 months ago

      I found a webpage that uses it and found out that it requires no authentication. So I just copied the url and sent a request every 5 seconds just like the webpage did. It gave a csv of busses, their routes and gps locations.

        • @grue@lemmy.world
          link
          fedilink
          09 months ago

          It depends on the transit service, and how much their IT people suck. I’m pretty sure there have been multiple attempts to make standardized APIs for this sort of thing, but you shouldn’t necessarily expect them to be widely used except maybe in Europe.

          Do a web search for “[transit service name] API” and start from there.