Sarah Hoffmann
ea761a15b6
more restrictive parsing of lat/lon
...
Require a decimal point in both numbers to avoid cases like
https://trac.openstreetmap.org/ticket/4884
2013-07-07 16:44:37 +02:00
Sarah Hoffmann
d5e9fc4a03
support for partial matching of US ZIP+4 codes
2013-06-19 22:58:46 +02:00
Brian Quinion
c5c44f9a07
missed some postcode use cases
2013-06-13 17:19:27 +01:00
Brian Quinion
464fb913a8
Allow for tiger addresses when filtering by rank
2013-06-11 17:28:30 +01:00
Brian Quinion
e26da936b3
recheck the rank limits before dropping out of the search loop - otherwise we can drop out too soon
2013-06-11 17:13:37 +01:00
Brian Quinion
aa8c6e5f13
Try alternative orderings of structured queries that include postal codes
2013-06-11 14:56:50 +01:00
Brian Quinion
5413abfb1e
remove the structuredAddressElement function from search that was moved to lib.php
2013-06-07 16:23:37 +01:00
Sarah Hoffmann
9cec989882
remove suggestion code, no longer works
2013-05-08 20:23:47 +02:00
Sarah Hoffmann
0e6cfed1a4
remove debug putput
2013-05-06 21:33:01 +02:00
Sarah Hoffmann
3ec91d267b
fix missing number conversion for coordinates
2013-05-06 21:19:12 +02:00
Sarah Hoffmann
ea48296eed
fix 500 on reverse via search without result
...
e.g. /search?q=1,1
2013-05-06 21:04:09 +02:00
Sarah Hoffmann
ddc46acd26
add support for house numbers without street
2013-04-27 00:57:18 +02:00
Sarah Hoffmann
2df0cafb24
fix inconsistency between getNearestNamendRoadFeature() and house number search
2013-04-23 21:25:56 +02:00
Sarah Hoffmann
b4c87a09a1
restrict depth of word set calculation
2013-04-20 00:18:08 +02:00
Sarah Hoffmann
fb0d219c7b
harmonize formatting of frontend php
2013-04-12 22:45:24 +02:00
Sarah Hoffmann
23d303124e
remove unused columns from word and search_name_* tables
...
Removes 'trigram' and 'location' from word.
Removes 'address', 'importance' and 'country_code' from search_name_*.
Use full geometry in centroid column of search_name_*.
Requires migration of existing tables. For more info see pull request
https://github.com/twain47/Nominatim/pull/45
2013-04-09 22:44:05 +02:00
Sarah Hoffmann
4d2b88dd3e
allow any unicode letter and spaces in special terms
...
Allows to search for things like [fish shop].
2013-04-07 17:53:34 +02:00
Sarah Hoffmann
a1670fa5a7
correct rank_address range for postalcodes
2013-04-03 22:29:47 +02:00
Brian Quinion
b980f8e4e1
Import class:type from linked features to the extratags files. Use place tags (in extratags) as well as rank to determine feature type. i.e. allow a admin_level=6 feature also tagged as a place=city to still be found when doing a city search.
2013-02-28 12:50:47 +00:00
Sarah Hoffmann
917d4f691c
remove full-word constraint for possible main words
...
Reversing the address did not work most of the time because
the address normally only contains the partial version of the word only.
See also
https://help.openstreetmap.org/questions/16317/warum-werden-straen-bei-suche-nicht-gefunden
2013-02-24 22:55:43 +01:00
Sarah Hoffmann
705bcf80fb
Merge branch 'address-importance' of https://github.com/lonvia/Nominatim
2013-02-13 22:10:28 +01:00
Brian Quinion
e891aa3041
include the type (not just class) in the dedupe
2013-02-07 18:41:17 +00:00
Sarah Hoffmann
364855c8a5
split query as utf8 string to avoid splitting on non-ascii characters
2013-01-31 20:52:04 +01:00
Sarah Hoffmann
13fff85415
stack importance instead of multiplying it for order
2013-01-31 20:11:40 +01:00
Sarah Hoffmann
f172d7b01e
order results by importance of address parts
2013-01-31 20:10:58 +01:00
Brian Quinion
adcafde481
now data isn't so lagy show the 'real' import date
2013-01-31 15:36:51 +00:00
Brian Quinion
3852096c80
avoid dropping tokens completely just because they are expensive. Use ' ' token in preference to just dropping
2013-01-31 14:17:41 +00:00
Brian Quinion
4bc40d2c0b
for structured queries assume 2 char country param values are a iso country code
2013-01-30 13:40:04 +00:00
Brian Quinion
68e4fddbc6
Change round how CONST_Max_Word_Frequency is applied. Was causing some valid combinations to be skipped (e.g. Casal De São Tomé). Change structured queries so the first search term can't end up in the address term
2013-01-30 13:40:04 +00:00
Brian Quinion
f9a7f03239
A bunch more places that should be using calculated_country_code not country_code
2013-01-24 16:17:37 +00:00
Brian Quinion
a2f1dd1c31
clean up some of the debug output
2013-01-24 16:06:56 +00:00
Brian Quinion
550523df1b
For structured queries remove type list for building / street level features
2013-01-19 01:47:24 +00:00
Sarah Hoffmann
3d8d52632b
respect exclude_place_ids in poi searches
2013-01-18 22:27:18 +01:00
Sarah Hoffmann
b567185966
allow country name at beginning for reverse order
2013-01-18 20:56:46 +01:00
Brian Quinion
d1a224bad4
performance: for low frequency name terms disable use of postgresql address index. Theshold is probably about 1000 but optimal value will probably depend on hardware.
2012-12-20 17:47:57 +00:00
Brian Quinion
4057b21e1f
use the new centroid property of placex in queries rather than calculating using st_centroid(geometry)
2012-12-18 12:50:34 +00:00
Sarah Hoffmann
fa1f23edfb
more isset checks for PHP variables
2012-12-12 18:49:21 +01:00
Brian Quinion
c98e59be03
included calculated importance on details. Change importance calc to prefer places with a wikipedia tag now that the code is better tested
2012-12-12 01:44:39 +00:00
Brian Quinion
0dafda7327
if doing structured query limit the types of osm place returned
2012-12-08 21:40:20 +00:00
Brian Quinion
274f381052
prune list of blocked items if too large, different costs for different page types
2012-12-08 21:39:24 +00:00
Brian Quinion
a276b6b53a
Experimental option to dry dropping query terms as part of search plan (disabled by default)
2012-12-03 17:41:29 +00:00
Sarah Hoffmann
4da0ed3204
don't search for country if house number was requested
2012-11-17 22:28:01 +01:00
Sarah Hoffmann
8d96e87b93
internally use higher result limits
...
Avoids that too few results are returned when there are duplicates
in the results due to linked places.
2012-11-17 21:16:47 +01:00
Brian Quinion
9eb5b62382
Accidentally used the same variable name for 2 things - broken search by class&type
2012-11-15 17:27:08 +00:00
Sarah Hoffmann
cc3e4aa532
use geometry WKT for highlighting in search view
...
also cleans up unused code in details view
2012-11-09 22:35:45 +01:00
Brian Quinion
2b6a163ef9
Get route param working again after recent changes (implies bounded=1)
2012-11-07 01:22:17 +00:00
Brian Quinion
a44f9c6aab
Missing some exact name matches when searching for 'special' phrases
2012-11-07 00:48:20 +00:00
Brian Quinion
3c1b21d61c
mising string concatenation (.)
2012-11-06 20:04:31 +00:00
Brian Quinion
e70dfa18fa
move error messages to consistent 'userError' function and return 400 Bad Request
2012-11-06 13:16:19 +00:00
Brian Quinion
9d8ee88591
make number of polygon outputs allowed a constant
2012-11-06 13:10:25 +00:00