Closed sampeters1 closed 1 year ago
Working on adding support for level_of_detail
and it's child attributes scale_type
, level
and square_size
Added support for level_of_detail
. Here are some examples of how you might use it:
from traveltimepy import LevelOfDetail
results = await sdk.time_map_async(
coordinates=[Coordinates(lat=51.507609, lng=-0.128315)],
arrival_time=datetime.now(),
transportation=Driving(),
level_of_detail=LevelOfDetail(scale_type="simple", level="lowest")
)
results = await sdk.time_map_async(
coordinates=[Coordinates(lat=51.507609, lng=-0.128315)],
arrival_time=datetime.now(),
transportation=Driving(),
level_of_detail=LevelOfDetail(scale_type="simple_numeric", level=0)
)
results = await sdk.time_map_async(
coordinates=[Coordinates(lat=51.507609, lng=-0.128315)],
arrival_time=datetime.now(),
transportation=Driving(),
level_of_detail=LevelOfDetail(scale_type="coarse_grid", square_size=600)
)
For a more detailed explanation of what values to use, you can refer to our API docs
Changes will be live in realease v3.6.2
I'm working on generating isochrones with the TravelTime API but struggling with configuring scale_type and level parameters for detail control.
How can I include these parameters in the code below?