Sarah Hoffmann
0af48fe802
exclude all objects without address rank from reverse
...
This was forgotten when looking for a housenumber for
a street point.
Fixes #1319 .
2019-04-16 23:13:27 +02:00
Sarah Hoffmann
a9ae2c7457
add reverse zoom level that includes minor streets
...
Zoom 17 now also resolves service roads and similar.
Fixes #1350 .
2019-04-15 22:43:07 +02:00
marc tobias
890d415e1f
Nominatim::DB support input variables, custom error messages
2019-03-10 16:56:36 +01:00
Sarah Hoffmann
16794a84de
Change accepted features for reverse geocoding at rank 30
...
Always exclude line features (removes railways, tunnels,
piers, historical streets etc.) and boundaries (removes
electoral, historical boundaries etc.)
Fixes #1313 .
2019-02-24 11:00:33 +01:00
Sarah Hoffmann
14e708f366
ignore linked country nodes for reverse geocoding
...
Fixes #1145 .
2018-08-22 23:33:11 +02:00
Sarah Hoffmann
3fcfab9772
clean up reverse code
...
Removes unused variables, improves naming of internal functions
and makes structure of SQL calls a bit cleaner.
2018-08-20 23:04:33 +02:00
Sarah Hoffmann
de8888ec58
directly do country search for reverse zoom < 5
...
Fixes #1145 .
2018-08-20 22:09:08 +02:00
Sarah Hoffmann
ff4b1758e1
reduce search radius when searching for nodes within country
2018-08-19 18:08:05 +02:00
Sarah Hoffmann
62b60c70e6
reverse on street level should compute distance to object
...
The centroid of a building may be far away even when still inside
the building.
Fixes #1136 .
2018-08-13 21:17:49 +02:00
Sarah Hoffmann
60cea6c8bf
fixup use of indexes for latest reverse changes
2018-08-08 22:04:39 +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
80a6751c51
make phpcs happy
2018-07-06 22:06:05 +02:00
Sarah Hoffmann
adae49b184
remove trailing spaces
2018-07-05 19:28:17 +02:00
Sarah Hoffmann
2bd7c75a35
avoid 'SELECT *'
2018-07-05 19:27:21 +02:00
Sarah Hoffmann
b0e0f7ae76
make sure index is used when looking for places in country
2018-07-04 20:56:09 +02:00
gemo1011
1d7ed6737e
added comments and improved geOutline function
2018-06-27 14:55:24 +02:00
gemo1011
97b6656182
no polygon search over country-level
2018-06-27 14:55:23 +02:00
gemo1011
f108eac527
changed the lookupPolygon function
...
- Search for Polygons begins at rank_address 4
- $iMaxRank changed to 25 if its higher
2018-06-27 14:55:22 +02:00
gemo1011
229ad01042
added search diameter for the place node search, depending on rank
2018-06-27 14:55:17 +02:00
gemo1011
a5750a6ef6
fixed getoutlinesfunction
2018-06-27 14:55:15 +02:00
gemo1011
0996fdfb55
improvements for pull request
2018-06-27 14:55:13 +02:00
gemo1011
be091b17d9
better search for interpolated housenumbers
2018-06-27 14:55:10 +02:00
gemo1011
796f069d74
test adjusting
2018-06-27 14:55:09 +02:00
gemo1011
82b6245aaa
better place node search with rank_search
2018-06-27 14:55:08 +02:00
gemo1011
f0e5cf53b8
only starts the search in country_osm_grid if $iMaxRank > 4
2018-06-27 14:55:07 +02:00
gemo1011
ee54ebfe77
new query if no polygon is found
...
the new query searchs in the country_osm_grid table for a polygon
2018-06-27 14:55:06 +02:00
gemo1011
10897787af
deleted query for place nodes search if no polygon is found and added search for interpolation lines
2018-06-05 11:54:12 +02:00
gemo1011
4d073b0350
new query to search place nodes if no polygon was found
2018-06-05 11:54:12 +02:00
gemo1011
625018b654
adapted the coding style with phpcs
2018-06-05 11:54:12 +02:00
gemo1011
5f2410119d
better performance
2018-06-05 11:54:12 +02:00
gemo1011
424c0d0ebb
faster query through bbox preselection
2018-06-05 11:54:12 +02:00
gemo1011
71c9adfdba
performence update through subquerry
2018-06-05 11:54:12 +02:00
gemo1011
723bb4d0b9
changing to from rank_search to rank_address
2018-06-05 11:54:12 +02:00
gemo1011
cb76635da7
better performance for place node search
2018-06-05 11:54:12 +02:00
gemo1011
237e31b3ce
use the linked_place_id for adress search if a place node is found with a linked_place_id
2018-06-05 11:54:12 +02:00
gemo1011
d0741f21b1
changed reverse geocode algorithm
2018-06-05 11:54:12 +02:00
Sarah Hoffmann
ed85388de5
fix address walk-up for reverse
...
Fixes the row for the join and completely drops parts that have
a linked_place_id.
Fixes #859 .
2017-12-15 00:10:05 +01:00
Sarah Hoffmann
8d91a88b22
allow unnamed roads for reverse geocoding
...
Should avoid that results are too far off in areas where
most roads are unnamed.
2017-10-27 20:10:32 +02:00
Sarah Hoffmann
f7258e314d
ignore linked places for reverse geocoding
...
Fixes #838 .
2017-10-27 20:06:53 +02:00
Sarah Hoffmann
6c1977b448
replace double-quoting with single quotes where applicable
2017-10-26 21:40:33 +02:00
Sarah Hoffmann
adbbb1ce02
restrict number of results for reverse queries
...
When given a coordinate off the coast of a large town, the entire
town may end up in the potential results during the reverse query.
Postgres then needs to sort tens of thousands of results before it
can determine the clostest one. Given that the results at such a
large search radius are bound to be imprecise anyway, restrict
the number of results postgres should consider to 1000.
2017-10-25 22:34:29 +02:00
Sarah Hoffmann
1424e8e29b
use Result class in reverse geocoding
...
Also simplifies the reverse algorithm slightly by no longer
having an additional distance lookup.
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
30511fd3ab
replace NearPoint with a more generic context object
...
The NearPoint is actually common to all SearchDescriptions
and there is other context data as well. like viewbox, that
needs to be available to the search object but is common.
2017-10-08 21:23:31 +02:00
Sarah Hoffmann
c8e79397f5
introduce address column for place tables
...
The column is a hstore containing the full OSM tag with key and
value.
2017-04-08 18:58:26 +02:00
Sarah Hoffmann
c48fb88e6b
move interpolaton computation into indexing step
...
The interpolaton computation needs information from the osm2pgsql
slim tables which may not be available when the data is inserted.
Insertion now only adds a line with basic address information to
location_property_osmline. The line is then split during the
indexing, leading to more lines (which are complete in that case)
being inserted.
Fixes #598 .
2017-02-26 16:46:41 +01:00
Sarah Hoffmann
a84a7a70f3
reverse: choose interpolation only when further than point
...
The ST_DWithin check also includes objects that are the same distance.
Another attempt at #545 .
2017-02-05 23:02:21 +01:00
Sarah Hoffmann
dcab7a19e5
reverse: disable interpolation when going up the address hierarchy
...
Fixes #621 .
2017-02-05 13:08:51 +01:00
Sarah Hoffmann
b8db8301df
reverse: reduce search radius for interpolations
...
Interpolations should have the same maximum search radius as
address points. Change search strategy and only search for
interpolations either before decreasing the maxRank to road
or when a POI was found and we need to check that there isn't
an interpolation that is closer.
2017-01-09 20:51:16 +01:00
Sarah Hoffmann
a855ffe58e
replace deprecated postgis functions
...
ST_Line_Locate_Point and ST_Distance_Spheroid have changed
spelling in newer version and throw a deprecation warning.
2016-10-09 20:09:59 +02:00
Marc Tobias Metten
6238ae6032
add namespaces, method visibility according to PSR2 standard
2016-09-16 02:27:36 +02:00