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

add interval_type to isochrone objects #72

Merged
merged 6 commits into from
Jul 12, 2022
Merged

Conversation

nilsnolde
Copy link
Owner

@nilsnolde nilsnolde commented Jul 11, 2022

for the network analyst it's easier if we store the interval_type/metric in the Isochrone and Expansions objects so we don't have to pass that stuff around needlessly.

PR is based on #71

also did a round of dependency updates.

@nilsnolde nilsnolde requested a review from chrstnbwnkl July 11, 2022 16:34
@@ -429,7 +429,7 @@ def isochrones(
intervals,
type="json",
buckets=1,
interval_type=None,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll default explicitly to time for all providers now, otherwise it could be None

Copy link
Contributor

@chrstnbwnkl chrstnbwnkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small typo, the rest looks good!

@property
def interval_type(self):
"""
Was is based on 'distance' or 'time'?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Was is based on 'distance' or 'time'?
Was it based on 'distance' or 'time'?

@nilsnolde nilsnolde merged commit 196ae87 into master Jul 12, 2022
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