Skip to content

Commit 8b56293

Browse files
author
Nathaniel Henry
committed
Correct the isochrone token cost to 10 per contour in the docs
1 parent b23732b commit 8b56293

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

docs/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Every metered reply carries its accounting:
4646
print(summary.tokens_charged, "charged;", summary.tokens_remaining, "left")
4747
4848
Metering is **1 token per returned row** (minimum 1 per request); isochrones are the
49-
exception at **1 token per contour**. A ``304`` revalidation is free.
49+
exception at **10 tokens per contour**. A ``304`` revalidation is free.
5050

5151
Pagination
5252
----------

docs/tutorials/amenity_basket.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Which amenities to add, and where
6868
---------------------------------
6969

7070
A new facility of type *X* placed at a block covers every block within a 15-minute
71-
walk of it — exactly a ``direction="from"`` walk isochrone (1 token each). We greedily
71+
walk of it — exactly a ``direction="from"`` walk isochrone (10 tokens each). We greedily
7272
pick the five sites that turn the most *currently-uncovered* residents into
7373
fully-covered ones.
7474

@@ -127,7 +127,8 @@ Token cost
127127

128128
- ``places``: free. ``blocks_query`` disc (~700 blocks × 6 categories):
129129
**~4,000 tokens** (cache ``rows`` and reuse it for the geometry pull).
130-
- Up to 25 candidate isochrones: **~25 tokens**.
130+
- Up to 25 candidate isochrones (1 contour each, 10 tokens): **~250 tokens**.
131131

132-
Just inside a 5,000-token month. Shrink ``radius_m`` (or the candidate count) to
133-
trade coverage for budget; widen it, across several months, for a whole city.
132+
Around 4,300 tokens — inside a 5,000-token month. Shrink ``radius_m`` (or the
133+
candidate count) to trade coverage for budget; widen it, across several months, for a
134+
whole city.

docs/tutorials/home_search.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ Block replies carry only GEOIDs, so join census-block boundaries. With
7373
Narrow to the overlap of two commutes
7474
-------------------------------------
7575

76-
Say the two of you work near Kendall Square and downtown Boston. A **15-minute
77-
transit isochrone** from each workplace is one token per contour:
76+
Say the two of you work near Kendall Square and downtown Boston. A **20-minute
77+
transit isochrone** from each workplace is 10 tokens per contour:
7878

7979
.. code-block:: python
8080
@@ -97,7 +97,7 @@ Token cost
9797
- ``places`` + ``destination_types``: **free**.
9898
- ``place_blocks`` over Somerville (~800 blocks × 3 categories): **~2,400 tokens**
9999
(once; reuse the result for the map by caching ``rows``).
100-
- Two transit isochrones: **~2 tokens**.
100+
- Two transit isochrones (1 contour each): **~20 tokens**.
101101

102102
Comfortably inside a 5,000-token month. For a larger city, replace
103103
``place_blocks(geoid, …)`` with a bounded disc —

docs/tutorials/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tutorials
44
Three worked analyses, each written to run comfortably inside a **5,000-token
55
monthly allowance**. The pattern is the same throughout: discover ids from the
66
**free** catalog, pull one **bounded** slice of data, do the analysis **locally**
7-
(free), and lean on **isochrones** (1 token per contour) for walksheds. Every
7+
(free), and lean on **isochrones** (10 tokens per contour) for walksheds. Every
88
tutorial ends with an estimated token cost.
99

1010
.. toctree::

0 commit comments

Comments
 (0)