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

Adding time-map-fast json and geojson #145

Merged
merged 10 commits into from
Oct 21, 2024
Merged

Adding time-map-fast json and geojson #145

merged 10 commits into from
Oct 21, 2024

Conversation

arnasbr
Copy link
Contributor

@arnasbr arnasbr commented Oct 21, 2024

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.

Comment on lines -397 to +466
* [transportation](#transportation): Union - Transportation mode and related parameters.
* [transportation]: Transportation - Transportation mode and related parameters.
Copy link
Contributor Author

@arnasbr arnasbr Oct 21, 2024

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
Copy link
Contributor Author

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

Copy link
Contributor Author

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"

Comment on lines 12 to 17
class Transportation(BaseModel):
type: Literal[
"public_transport",
"driving",
"cycling",
"walking",
"walking+ferry",
"cycling+ferry",
"driving+ferry",
Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@arnasbr arnasbr merged commit 6bf8b67 into master Oct 21, 2024
5 checks passed
@arnasbr arnasbr deleted the add-time-map-fast branch October 21, 2024 12:11
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

Successfully merging this pull request may close these issues.

2 participants