Skip to content

Commit feb1904

Browse files
author
Nathaniel Henry
committed
Shade the first-map supermarkets by walk time and correct the fill-scale directions.
1 parent 608e018 commit feb1904

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/tutorials/amenity_basket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ blocks. It reuses the data you already pulled, so it costs nothing more.
116116
covered = blocks[blocks.travel_time <= 15]
117117
score = covered.groupby("geoid")["dest_type_id"].nunique()
118118
one_per_block["score"] = one_per_block.geoid.map(score).fillna(0).astype(int)
119-
close_map(one_per_block, fill = "score", boundary = city_boundary)
119+
close_map(one_per_block, fill = "score", reverse = True, boundary = city_boundary)
120120
```
121121

122122
## Who can reach all six

docs/tutorials/first_map.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ walk_times.sort_values("travel_time")[["name", "travel_time"]]
6868
A 30-minute walk is a travel-time question, not a distance one, so let the routing
6969
answer it directly: `point_pois` returns every POI reachable from the starting point
7070
within `max_minutes`, each carrying its walk time — no isochrone to overlay.
71-
`close_map()` draws the result on an interactive basemap in one line, with the city
72-
boundary behind it for context.
71+
`close_map()` draws them in one line, shaded by that walk time (blue = closest),
72+
with the starting point marked by an X and the city boundary behind for context.
7373

7474
```{code-cell} python
7575
nearby_supermarkets = close.point_pois(
@@ -83,7 +83,7 @@ nearby_supermarkets = close.point_pois(
8383
city_boundary = close.place_boundary(geoid = providence_ri["geoid"])
8484
close_map(
8585
nearby_supermarkets,
86-
color = "#e8590c",
86+
fill = "travel_time",
8787
boundary = city_boundary,
8888
label = "name",
8989
mark = (start_lon, start_lat)
@@ -105,7 +105,7 @@ rings = close.isochrone(
105105
contours = [10, 20, 30],
106106
format = "geojson"
107107
)
108-
close_map(rings, fill = "contour", reverse = True)
108+
close_map(rings, fill = "contour")
109109
```
110110

111111
## Walk versus transit

0 commit comments

Comments
 (0)