openmove / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
0 stars 0 forks source link

transportModes not work like modes #12

Closed stefanocudini closed 1 year ago

stefanocudini commented 2 years ago

query example: https://githubhot.com/repo/mfdz/OpenTripPlanner/issues/97

        transportModes: [{mode: WALK},{mode: TRAM},{mode: SUBWAY},{mode: RAIL},{mode: BUS},{mode: FERRY},{mode: CABLE_CAR},{mode: GONDOLA},{mode: AIRPLANE}]```

modes work but is deprecated

{
      plan(
        from: {lat: 45.08, lon: 7.54, address: "Arona GeoPos"}, 
        to: {lat: 46.11, lon: 8.29, address: "Stazione DOMODOSSOLA GeoPos"}, 
        numItineraries: 10000,
        date: "2022-06-18",
        time: "12:00:00",
        arriveBy: false,
        maxTransfers: 2,
        wheelchair: false,
        ,
        modes: "WALK,TRAM,SUBWAY,RAIL,FERRY"
zabuTNT commented 1 year ago

transportModes was ignored, now it work and I simplify the format as an array of strings:

transportModes: ["WALK","TRANSIT"]

this is equal to:

modes: "WALK,TRANSIT"