Skip to content

Commit

Permalink
fix: Update other broken examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 22, 2024
1 parent 9aa9104 commit 8c9411c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions finder/templates/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ <h2>Boundaries</h2>
</dd>
<dt>Get one page of boundaries from multiple boundary sets (comma-separated)</dt>
<dd>
<a class="example" href="/boundaries/?sets=toronto-wards,ottawa-wards&amp;format=apibrowser">/boundaries/?sets=toronto-wards,ottawa-wards</a>
<a class="example" href="/boundaries/?sets=toronto-wards-2018,ottawa-wards&amp;format=apibrowser">/boundaries/?sets=toronto-wards-2018,ottawa-wards</a>
<p>To see what boundary sets are available, consult the <a href="#boundaryset">boundary sets</a> endpoint.</p>
</dd>
<dt>Get one boundary</dt>
<dd>
<a class="example" href="/boundaries/nova-scotia-electoral-districts/cape-breton-centre/?format=apibrowser">/boundaries/nova-scotia-electoral-districts/cape-breton-centre/</a>
<a class="example" href="/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/?format=apibrowser">/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/</a>
</dd>
<dt>Filter all boundaries by <code>name</code> or <code>external_id</code></dt>
<dd>
Expand All @@ -190,11 +190,11 @@ <h3 id="boundary-geospatial">Geospatial queries</h3>
</dd>
<dt>Find boundaries that touch</dt>
<dd>
<a class="example" href="/boundaries/?touches=alberta-electoral-districts/highwood&amp;format=apibrowser">/boundaries/?touches=alberta-electoral-districts/highwood</a>
<a class="example" href="/boundaries/?touches=alberta-electoral-districts-2017/highwood&amp;format=apibrowser">/boundaries/?touches=alberta-electoral-districts-2017/highwood</a>
</dd>
<dt>Find boundaries that intersect (&ldquo;covers or overlaps&rdquo; in PostGIS lingo)</dt>
<dd>
<a class="example" href="/boundaries/?intersects=alberta-electoral-districts/highwood&amp;format=apibrowser">/boundaries/?intersects=alberta-electoral-districts/highwood</a>
<a class="example" href="/boundaries/?intersects=alberta-electoral-districts-2017/highwood&amp;format=apibrowser">/boundaries/?intersects=alberta-electoral-districts-2017/highwood</a>
</dd>
</dl>

Expand All @@ -217,15 +217,15 @@ <h3 id="boundary-drawing">Drawing boundaries</h3>
</dd>
<dt>Get one boundary's simple shape</dt>
<dd>
<a class="example" href="/boundaries/nova-scotia-electoral-districts/cape-breton-centre/simple_shape?format=apibrowser">/boundaries/nova-scotia-electoral-districts/cape-breton-centre/simple_shape</a>
<a class="example" href="/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/simple_shape?format=apibrowser">/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/simple_shape</a>
</dd>
<dt>Get one boundary's original shape</dt>
<dd>
<a class="example" href="/boundaries/nova-scotia-electoral-districts/cape-breton-centre/shape?format=apibrowser">/boundaries/nova-scotia-electoral-districts/cape-breton-centre/shape</a>
<a class="example" href="/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/shape?format=apibrowser">/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/shape</a>
</dd>
<dt>Get one boundary's centroid</dt>
<dd>
<a class="example" href="/boundaries/nova-scotia-electoral-districts/cape-breton-centre/centroid?format=apibrowser">/boundaries/nova-scotia-electoral-districts/cape-breton-centre/centroid</a>
<a class="example" href="/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/centroid?format=apibrowser">/boundaries/nova-scotia-electoral-districts-2019/cape-breton-centre/centroid</a>
</dd>
</dl>
</div>
Expand Down

0 comments on commit 8c9411c

Please sign in to comment.