-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adding time-map-fast json and geojson #145
Conversation
* [transportation](#transportation): Union - Transportation mode and related parameters. | ||
* [transportation]: Transportation - Transportation mode and related parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast endpoints have different transportation types, so this part of time-filter-fast description is incorrect, maybe I'll add a readme entry for them too
coords=cur_coordinates, | ||
transportation=transportation, | ||
travel_time=travel_time, | ||
arrival_time_period="weekday_morning", # TODO: make customizable with enum / literal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time filter fast has this hardcoded, so keeping it like this for now. Will make it customizable (a literal to avoid breaking changes) in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessarily a literal, but it has to be optional, with default value of "weekday_morning"
class Transportation(BaseModel): | ||
type: Literal[ | ||
"public_transport", | ||
"driving", | ||
"cycling", | ||
"walking", | ||
"walking+ferry", | ||
"cycling+ferry", | ||
"driving+ferry", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing modes that are unsupported by our api anymore, tho this would be a breaking change. Let me know if I should keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm I'll undo this. driving, cycling and walking is not mentioned in our api docs, but no error is thrown if they're used, so someone might be using them
Adding json and geojson first as those are the most needed.
Skipping params that the sdk doesn't support yet (like
render_mode
). Will add them in future PRs.