Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First entry in /locations query resultset #176

Open
alexqmn opened this issue Aug 21, 2017 · 1 comment
Open

First entry in /locations query resultset #176

alexqmn opened this issue Aug 21, 2017 · 1 comment

Comments

@alexqmn
Copy link

alexqmn commented Aug 21, 2017

Hi,

I noticed that in the resultset of a /locations search with x and y specified, the first result is always a "generic" location with id and coordinates x/y null. Is this intended? Before the Backend Change the first entry was also a station.

Also the "type" attribute mentioned in the documentation http://transport.opendata.ch/docs.html#location seems to be missing.

http://transport.opendata.ch/v1/locations?x=47.552711&y=8.621601

stations": [
        {
            "id": null,
            "name": "Langenbachstr. 21, Buch am Irchel",
            "score": null,
            "coordinate": {
                "type": "WGS84",
                "x": null,
                "y": null
            },
            "distance": 10
        },
        {
            "id": "8573685",
            "name": "Buch a. Irchel, Unterbuch",
            "score": null,
            "coordinate": {
                "type": "WGS84",
                "x": 47.550058,
                "y": 8.61875
            },
            "distance": 365
        }

http://transport.opendata.ch/v1/locations?x=47.550058&y=8.61875

"stations": [
        {
            "id": null,
            "name": "Unterbuch (Haltestelle), Buch a. Irchel",
            "score": null,
            "coordinate": {
                "type": "WGS84",
                "x": null,
                "y": null
            },
            "distance": 0
        },
        {
            "id": "8573685",
            "name": "Buch a. Irchel, Unterbuch",
            "score": null,
            "coordinate": {
                "type": "WGS84",
                "x": 47.550058,
                "y": 8.61875
            },
            "distance": 0
        }

Thanks,
Alex

@fabian fabian added the beta label Aug 21, 2017
@helbling
Copy link

can be fixed by adding &stoponly=1 to the search.ch subrequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants