Skip to content

Commit

Permalink
Move walk step tests to planConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Oct 5, 2024
1 parent f9bd671 commit 550e8ba
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
{
"data" : {
"plan" : {
"itineraries" : [
"planConnection" : {
"edges" : [
{
"legs" : [
{
"steps" : [
{
"streetName" : "street",
"area" : false,
"relativeDirection" : "DEPART",
"absoluteDirection" : "NORTHEAST"
},
{
"streetName" : "elevator",
"area" : false,
"relativeDirection" : "ELEVATOR",
"absoluteDirection" : null
}
]
},
{
"steps" : [ ]
},
{
"steps" : [ ]
},
{
"steps" : [ ]
}
]
"node" : {
"legs" : [
{
"steps" : [
{
"streetName" : "street",
"area" : false,
"relativeDirection" : "DEPART",
"absoluteDirection" : "NORTHEAST"
},
{
"streetName" : "elevator",
"area" : false,
"relativeDirection" : "ELEVATOR",
"absoluteDirection" : null
}
]
},
{
"steps" : [ ]
},
{
"steps" : [ ]
},
{
"steps" : [ ]
}
]
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
{
plan(
fromPlace: "from"
toPlace: "to"
date: "2023-02-15"
time: "11:37"
transportModes: [{ mode: WALK }]
planConnection(
origin: {
location: { coordinate: { latitude: 45.5552, longitude: -122.6534 } }
}
destination: {
location: { coordinate: { latitude: 45.4908, longitude: -122.5519 } }
}
dateTime: { earliestDeparture: "2023-06-13T14:30-07:00" }
modes: {
direct: [WALK]
transit: { transit: [{ mode: BUS }, { mode: RAIL }] }
}
) {
itineraries {
legs {
steps {
streetName
area
relativeDirection
absoluteDirection
edges {
node {
legs {
steps {
streetName
area
relativeDirection
absoluteDirection
}
}
}
}
Expand Down

0 comments on commit 550e8ba

Please sign in to comment.