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

Repeated routes for stops with same shortName #112

Open
PasiSalenius opened this issue Jan 22, 2017 · 0 comments
Open

Repeated routes for stops with same shortName #112

PasiSalenius opened this issue Jan 22, 2017 · 0 comments

Comments

@PasiSalenius
Copy link

Issuing the following stopsByRadius request to /finland endpoint returns long lists of routes that all have the same shortName and longName, but have different gtfsId values.

Shouldn't these be different trips or possibly patterns of the same route, not separate routes with their own gtfsId values?

http://api.digitransit.fi/routing/v1/routers/finland/index/graphql
{
  stopsByRadius(lat: 60.448833, lon: 22.268633, radius: 100) {
    edges {
      node {
        stop {
          gtfsId
          name
          lat
          lon
          routes {
            gtfsId
            type
            shortName
            longName
          }
        }
      }
    }
  }
}

response

{
          "node": {
            "stop": {
              "gtfsId": "MATKA:221",
              "name": "Kaupungintalo",
              "lat": 60.449117,
              "lon": 22.269114,
              "routes": [
                {
                  "gtfsId": "MATKA:3441086",
                  "type": "BUS",
                  "shortName": "55",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3444111",
                  "type": "BUS",
                  "shortName": "55",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3440283",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3430498",
                  "type": "BUS",
                  "shortName": "18",
                  "longName": "Runosmäki-Harittu"
                },
                {
                  "gtfsId": "MATKA:3434532",
                  "type": "BUS",
                  "shortName": "55",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3431131",
                  "type": "BUS",
                  "shortName": "18",
                  "longName": "Ilpoinen-Luolavuorentie-Kauppatori"
                },
                {
                  "gtfsId": "MATKA:3435353",
                  "type": "BUS",
                  "shortName": "55",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3438279",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3442376",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3443718",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3431595",
                  "type": "BUS",
                  "shortName": "55",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3441625",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                {
                  "gtfsId": "MATKA:3442933",
                  "type": "BUS",
                  "shortName": "56",
                  "longName": "Räntämäki-Haarla"
                },
                ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant