Since graphhopper's isochrone endpoint expects a limit and a number of buckets instead of intervals, what if we provide a convenience method that takes a time limit and a number of buckets and converts it to intervals like this:
time_limit = 850
buckets = 5
intervals = [int(time_limit-n*time_limit/buckets) for n in range(buckets)]
Pretty high level, but possibly a nice gem and a contribution to consistent access across routers ;)
Since graphhopper's isochrone endpoint expects a limit and a number of buckets instead of intervals, what if we provide a convenience method that takes a time limit and a number of buckets and converts it to intervals like this:
Pretty high level, but possibly a nice gem and a contribution to consistent access across routers ;)