mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 05:52:32 +03:00
typo in SQL in Postcodes.md
This commit is contained in:
parent
f42e40712e
commit
7503987630
@ -1,6 +1,7 @@
|
|||||||
# Postcodes in Nominatim
|
# Postcodes in Nominatim
|
||||||
|
|
||||||
The blog post [Nominatim and Postcodes](https://www.openstreetmap.org/user/lonvia/diary/43143)
|
The blog post
|
||||||
|
[Nominatim and Postcodes](https://www.openstreetmap.org/user/lonvia/diary/43143)
|
||||||
describes the handling implemented since Nominatim 3.1.
|
describes the handling implemented since Nominatim 3.1.
|
||||||
|
|
||||||
Postcode centroids (aka 'calculated postcodes') are generated by looking at all
|
Postcode centroids (aka 'calculated postcodes') are generated by looking at all
|
||||||
@ -22,8 +23,9 @@ and runs once per night on nominatim.openstreetmap.org.
|
|||||||
In the Nominatim database run
|
In the Nominatim database run
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT osm_type, osm_id, class, type,
|
SELECT address->'postcode' as pc,
|
||||||
st_x(centroid) as lon, st_y(centroid) at lat
|
osm_type, osm_id, class, type,
|
||||||
|
st_x(centroid) as lon, st_y(centroid) as lat
|
||||||
FROM placex
|
FROM placex
|
||||||
WHERE country_code='fr'
|
WHERE country_code='fr'
|
||||||
AND upper(trim (both ' ' from address->'postcode')) = '33210';
|
AND upper(trim (both ' ' from address->'postcode')) = '33210';
|
||||||
|
Loading…
Reference in New Issue
Block a user