Skip to content

Commit

Permalink
docs: add example areas query
Browse files Browse the repository at this point in the history
  • Loading branch information
SchutteJan committed Jul 14, 2024
1 parent ff2ac68 commit 8f3908c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/areas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ jq ".features[].properties.Gebied" areas.json
# Generate SQL import data for areas table
poerty run python render_template.py
```


## Example queries

```postgresql
SELECT an_location.name, ST_Contains(an_area.area, an_location.coordinates) As areacontainslocation
FROM
(SELECT area FROM areas WHERE name = 'Oud-Oost') As an_area,
(SELECT coordinates, name FROM locations) As an_location;
```

0 comments on commit 8f3908c

Please sign in to comment.