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

Improve performance of flex routing #105

Open
leonardehrenfried opened this issue Jun 16, 2021 · 0 comments
Open

Improve performance of flex routing #105

leonardehrenfried opened this issue Jun 16, 2021 · 0 comments

Comments

@leonardehrenfried
Copy link
Collaborator

The following query:

query{
  plan(
    date: "2021-06-16"
    time: "22:30"
    from: { lat:  48.6226, lon: 8.8879 }
    to: { lat: 48.5755, lon: 8.8795 }
    transportModes: [
      { mode: RAIL },
      { mode: FLEX, qualifier: EGRESS },
      { mode: FLEX, qualifier: DIRECT },
      { mode: WALK },
    ],
    carReluctance: 10
  ) {
    itineraries {
      legs {
        mode
        rentedBike
        distance
        startTime
        endTime
        dropOffBookingInfo {
          message
        }
        pickupBookingInfo {
          message
          contactInfo {
            phoneNumber
            infoUrl
            bookingUrl
          }
        }
        dropOffBookingInfo {
          message
        }
        route {
          url
          mode
          shortName
          type
        }
        trip {
          gtfsId
          tripShortName
          
        }
        from {
          name
          bikeRentalStation {
            name
            id
          }
          
        }
        to {
          name
          bikeRentalStation {
            name
            id
          }
        }
      }
    }
  }
}

takes around 7 seconds.

Please investigate if this can be made quicker.

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