Skip to content

API change: request now fetches also neighboring stations #1

@chaosbiber

Description

@chaosbiber

Since 3 or 4 weeks the previously working fetch url, e.g. https://projekte.kvv-efa.de/sl3-alone/XSLT_DM_REQUEST?outputFormat=JSON&coordOutputFormat=WGS84%5Bdd.ddddd%5D&depType=stopEvents&locationServerActive=1&mode=direct&name_dm=7000238&type_dm=stop&useOnlyStops=1&useRealtime=1&limit=10 also lists neighboring stations and its departures (station list in dm.itdOdvAssignedStops). To achieve continuous behavior one can filter by departureList[].stopID while increasing the limit.

I've tried to construct an updated URL from the website, but the one I got working is a lot longer and ignores the limit (returns 40): https://projekte.kvv-efa.de/sl3-alone/XSLT_DM_REQUEST?outputFormat=JSON&coordOutputFormat=WGS84[dd.ddddd]&command=&itdLPxx_timeFormat=12&language=de&std3_commonMacro=dm&includeCompleteStopSeq=1&useAllStops=1&type_dm=stop&useRealtime=1&std3_inclMOT_5Macro=true&imparedOptionsActive=1&nameInfo_dm=7000238&mode=direct&limit=10
Haven't tried all param combinations but at least some of the strange macro ones seem to be required to make it return only data for a single station.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions