Sarah Hoffmann
5d98c09ee9
Add reverse-only parameter to setup
...
Avoids creating the search_name table. Useful when only /reverse
is used or the content is directly exported to photon.
Fixes #939 .
2018-11-21 19:36:21 +01:00
Sarah Hoffmann
fb796d14ec
Always ignore continents for addresses
...
Fixes #1236 .
2018-11-18 17:00:59 +01:00
Sarah Hoffmann
43c2eb383e
Remove country and state nodes from address computation
...
OSM has by now almost complete coverage of admin
boundaries up to state level. Place nodes will do more
harm than good in this case.
2018-11-17 23:32:08 +01:00
Sarah Hoffmann
48d4ea5542
Do not have postcode node appear in addresses directly
...
Many of the postcode nodes are actually derived from
incomplete addresses and are as such not even centroids.
Better let them only take part in the address computation
via the postcode table.
2018-08-05 14:25:20 +02:00
Sarah Hoffmann
9bdbbec0c8
Merge pull request #1110 from lonvia/remove-address-check-for-long-lines
...
Remove special search for address part for long ways
2018-08-04 23:19:32 +02:00
Sarah Hoffmann
646fa53b44
improve place node search when no areas found
...
Only look for place nodes in a certain radius according
to the rank_search of the place node.
2018-08-04 21:51:23 +02:00
Sarah Hoffmann
4a28d28c08
prefix function calls in make_standard_name() with schema
...
Fixes #1097 .
2018-08-01 23:12:34 +02:00
Sarah Hoffmann
713ea080d2
Remove special search for address part for long ways
...
Ways now always have the complete set of crossing boundaries
independent of the length.
Fixes #1108 .
2018-07-22 15:05:45 +02:00
Sarah Hoffmann
6706a23fb5
streamline SQL for parenting rank 30 places
...
- avoid select all
- prefer direct select into
- use early loop exit when possible
2018-05-01 15:44:18 +02:00
Sarah Hoffmann
59288417f0
remove debug code
2018-04-16 20:29:30 +02:00
Sarah Hoffmann
1dd401b570
remove use of is_in terms for address computation
...
The code has been dead for a long time because all is_in
terms have been added to the nameaddress_vector so
that the IF condition would never hit.
2018-04-16 20:27:16 +02:00
Sarah Hoffmann
ee194ab369
remove special search for Tiger postcodes
...
Postcodes should no longer appear in the address search terms.
2018-04-16 20:25:19 +02:00
Sarah Hoffmann
b8113abd93
fix variable name
2018-04-16 20:16:11 +02:00
Sarah Hoffmann
5182da9f45
add tests for address tag parsing for search name
2018-04-15 22:52:42 +02:00
Sarah Hoffmann
14c25717ab
restrict addr:* tags that are used for search term
...
Fixes #1001 .
2018-04-15 22:17:20 +02:00
Sarah Hoffmann
c3483747eb
reimport boundaries from scratch when type is changed
...
Fixes #895 .
2018-02-12 21:19:27 +01:00
Sarah Hoffmann
35c7269bac
when linking waterway ways and relations allow all river-like types
...
Fixes #848
2017-12-16 17:00:55 +01:00
Sarah Hoffmann
c44324fda5
ignore linked places for address details
...
Fixes #816 .
2017-10-27 21:57:35 +02:00
Sarah Hoffmann
7ea1ef3feb
take country names only from relations
2017-10-12 21:03:03 +02:00
Sarah Hoffmann
909b0c7462
Merge pull request #782 from lonvia/rework-postcodes
...
Rework handling of artificial postcode centroids
2017-09-16 15:54:55 +02:00
Sarah Hoffmann
37c653396b
increase search rank of leisure=park
...
Fixes #786 .
2017-08-31 21:10:48 +02:00
Sarah Hoffmann
caf018538f
normalize all postcodes before use
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
ccae2c733b
simplify search for artificial postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
5673c4cf91
special handling for estimated postcode in areas
...
Don't add a postcode at all if multiple estimated
postcodes fall into the area.
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
a44377c7b0
fix postcode-related tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
413c69ddc9
improve calculation of postcode for interpolations
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
ce76a25101
merging back postcodes is no longer necessary
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
57dc0304b5
add search for postcode
...
Implements the 'postcode' operator.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
a2a1901b09
add postcodes as special items in word table
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
43869b9938
make sure postcode gets recomputed on update
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
9a86c0cebc
use only computed postcode when getting address
...
Postcodes from address parts are now ignored as they have
been already taken into account when computing the postcode.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
d0cc4006d3
remove unused get_address_postcode function
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
dc2911ae72
normalize postcodes before adding to location tables
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
d59d57957c
precompute postcodes
...
Set postcode column to the best guess for the postcode for
the place.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
4e792546e8
add postcode to location_area tables
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
71ddeb40a6
remove now useless getNearestPostcode function
...
Most postcodes are not in the location-area tables anymore.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
80ef6cbaab
add indexing of artificial postcodes
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
3e9fb0dc84
fix syntax typo
2017-08-14 22:34:53 +02:00
Sarah Hoffmann
2daa4ed813
add extensive debug messages for placex
2017-06-15 23:17:34 +02:00
Sarah Hoffmann
5e5713b90f
Ignore postcodes with comma and semicolon when computing address
...
OSM has sometimes postcode lists for cities which should
simply be ignored.
Fixes #673 .
2017-06-07 23:19:56 +02:00
Sarah Hoffmann
9785aff76c
restrict linked places to place nodes
...
Avoids getting the wrong entry when the linked place has
double tagging.
Fixes #573 .
2017-06-07 21:32:02 +02:00
Sarah Hoffmann
5a5691b5b7
force update of linker when linkee is updates
...
Potential name changes need to be added to the linker's
name hstore.
Fixes #170 .
2017-06-06 23:46:44 +02:00
Sarah Hoffmann
623d58b67e
Remove boundries when downgrading from polygon to line
...
Fixes #135 .
2017-06-06 21:59:36 +02:00
Sarah Hoffmann
b9cc47ee67
Revert "use "char" type when refering to osm_type column"
...
This reverts commit 2dd7f0156a
.
2017-06-05 09:07:47 +02:00
Sarah Hoffmann
e3fb706c65
add normalized version of special search terms on import
...
Requires the PHP bindings for libicu, so add that as a requirement.
2017-06-04 23:12:09 +02:00
Sarah Hoffmann
2dd7f0156a
use "char" type when refering to osm_type column
...
When using an explicit cast to char(1) when refering to the
osm_type column postgres won't use the index in some cases.
Observed only on postgres 9.5 from the original Postgres
reporsitories.
Fixes #741 .
2017-06-04 14:48:53 +02:00
Sarah Hoffmann
002fa35b92
when linking places compute maximum importance
...
The linker and the linkee might have different wikipedia
tags and thus different importances. Prefer the higher
value.
Fixes #562 .
2017-05-30 23:36:59 +02:00
Sarah Hoffmann
d8ade1c527
remove another use of place.country_code
2017-04-23 22:46:54 +02:00
Christian von Roques
b6be33cded
explicitly name columns at INSERT
2017-04-18 13:36:02 +02:00
Sarah Hoffmann
1e30e578e0
Merge pull request #700 from lonvia/structured-address-info
...
Move address information into hstore column
2017-04-13 22:12:19 +02:00