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
Marc Tobias Metten
4a321487f3
fix indentation and misc errors according to PSR2 coding style guide
2016-09-14 03:16:46 +02:00
Marc Tobias Metten
2a784fa3d4
fix function declaration errors according to PSR2 coding style guide
2016-09-11 05:22:51 +02:00
marc tobias
3887423381
fix array-related errors according to PSR2 coding style guide
2016-09-10 21:10:52 +02:00
marc tobias
f05ea577f4
bracket spacing for if/else/for/foreach/while/switch according to PSR2 standard
2016-09-08 02:16:22 +01:00
Marc Tobias Metten
832547f192
tabs-to-spaces
2016-09-04 03:19:48 +02:00
Sarah Hoffmann
0d179b8c97
remove unnecessary local variable
2016-07-26 20:54:14 +02:00
Sarah Hoffmann
1b33999f10
refactor ReverseGeocode
...
- remove unused functions and members
- move coordinates from being members to being parameters of lookup()
2016-07-26 20:54:14 +02:00
Sarah Hoffmann
a766240c06
remove duplicate reverse geocoding code
...
Geocode now uses ReverseGeocode directly. Note that it currently
cannot support any interpolations, neither OSM nor Tiger. But
neither did the previous version.
2016-07-24 23:58:39 +02:00
Sarah Hoffmann
2ab43f6367
reverse do not downgrade tiger and interpolation results
...
Also fix the type that is returned for Tiger data.
Fixes #470
2016-06-14 21:38:03 +02:00
Sarah Hoffmann
033b9590bd
use chksql everywhere in lib/
...
Replaces manual PEAR error checks and adds the chksql wrapper
where the error checks were still missing.
2016-06-12 14:58:05 +02:00
Markus Gail
db719d489f
index on geometry of interpolation lines, and more improvements.
2016-04-27 17:42:59 +02:00
Markus Gail
a10f537131
Correct merge error in Geocode.php.
2016-04-25 17:44:34 +02:00
Markus Gail
b03be15442
Merge remote-tracking branch 'origin/master' into osmline
...
Conflicts:
lib/Geocode.php
lib/PlaceLookup.php
sql/functions.sql
sql/tables.sql
utils/setup.php
2016-04-25 11:01:04 +02:00
Markus Gail
7879ad44cd
Remove interpolation lines from placex and save them in an extra table.
2016-04-25 09:44:01 +02:00
Sarah Hoffmann
a86563cfb1
make tables for external data (Tiger and aux) configurable
...
Introduces two new settings CONST_Use_US_Tiger_Data and
CONST_Use_Aux_Location_data, which are disabled by default.
When false the corresponding tables are ignored in queries
and updates.
Aux and tiger tables are no longer created by default. This
has to be done by the corresponding import scripts. The former
aux table creation can be found in sql/aux_tables.sql for
reference.
2016-04-07 21:47:51 +02:00
Markus Gail
a4ecd9d73e
Merge branch 'tigerlines' of /home/markus/Nominatim into tiger
...
Conflicts:
lib/Geocode.php
lib/ReverseGeocode.php
lib/lib.php
2016-03-22 11:26:39 +01:00
Markus Gail
e94b667e16
adapt to code style conventions
2016-03-21 14:15:22 +01:00