Skip to content

Repeated routes for stops with same shortName #112

@PasiSalenius

Description

@PasiSalenius

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"
                },
                ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions