Description
NOTE: this issue system is intended for reporting bugs and tracking progress in software
development. For all other usage and software development questions or discussion, please post a
question in our chat room: https://gitter.im/opentripplanner/OpenTripPlanner.
Expected behavior
Return trips using the query below without error :
query PlanConnection {
planConnection(
dateTime: {
earliestDeparture: "2025-03-24T07:04:02Z"
}
origin: {
location: {
coordinate: {
latitude: 46.111293,
longitude: 5.973422
}
}
}
destination: {
location: {
coordinate: {
latitude: 46.209635,
longitude: 6.136122
}
}
}
preferences: {
street: {
walk: {
reluctance: 2
}
}
transit: {
transfer: {
maximumTransfers: 10
}
}
}
first: 8
searchWindow: "PT1H"
modes: {
transit: {
transit: [ { mode:BUS }, { mode:TRAM }, { mode:RAIL }, { mode: TROLLEYBUS} ]
}
}
) {
edges {
node {
duration
start
end
waitingTime
legs {
realTime
trip {
id
gtfsId
}
legGeometry {
points
length
}
start {
scheduledTime
}
end {
scheduledTime
}
mode
duration
distance
generalizedCost
headsign
from {
stop {
id
gtfsId
}
name
lon
lat
departure {
scheduledTime
}
vertexType
}
to {
stop {
id
gtfsId
}
name
lon
lat
departure {
scheduledTime
}
vertexType
}
route {
shortName
id
}
agency {
id
gtfsId
}
intermediateStops {
name
id
gtfsId
}
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
endCursor
startCursor
}
}
}
the error received is :
{
"errors": [
{
"message": "Exception while fetching data (/planConnection) : distanceMeters",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"planConnection"
],
"extensions": {
"classification": "DataFetchingException"
}
}
],
"data": {
"planConnection": null
}
}
Observed behavior
Version of OTP used (exact commit hash or JAR name)
2.7.0 Final (tagged)
Data sets in use (links to GTFS and OSM PBF files)
Command line used to start OTP
docker run --privileged --cap-add ALL --rm --env JAVA_TOOL_OPTIONS=-Xmx80g -p 8080:8080 -v "$(pwd)/fr-ch:/var/opentripplanner" docker.io/opentripplanner/opentripplanner:2.7.0 --load --serve
Router config and graph build config JSON
{
"updaters": [
{
"type": "stop-time-updater",
"frequency": "5m",
"url": "https://api.opentransportdata.swiss/la/gtfs-rt",
"feedId": "9",
},
{
"type": "vehicle-rental",
"frequency": "5m",
"sourceType": "gbfs",
"url": "https://sharedmobility.ch/gbfs.json"
}
],
"server": {
"enableGraphQL": true,
"enableGraphQLPlayground": true,
"enableTransmodelApi": true,
"enableLegacyGraphQLApi": false
}
}
Steps to reproduce the problem
Launch the query graphql