Sarah Hoffmann
f7258e314d
ignore linked places for reverse geocoding
...
Fixes #838 .
2017-10-27 20:06:53 +02:00
Sarah Hoffmann
6a3c6c43ea
Merge pull request #835 from lonvia/fix-quoting
...
Replace double quoting with single quotes
2017-10-26 22:01:43 +02:00
Sarah Hoffmann
6c1977b448
replace double-quoting with single quotes where applicable
2017-10-26 21:40:33 +02:00
marc tobias
71602afcad
PHP code style rule to enforce single quotes
2017-10-26 21:03:17 +02:00
Sarah Hoffmann
0c053431f5
Merge pull request #834 from mtmail/tests-for-closest-housenumber
...
tests for lib.php closestHouseNumber
2017-10-26 20:51:51 +02:00
Marc Tobias Metten
185a983c9d
tests for lib.php closestHouseNumber
2017-10-25 23:58:13 +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
f78d094483
fix variable typo when filtering results
...
Fixes #830 and #832 .
2017-10-25 20:25:23 +02:00
Sarah Hoffmann
7eeb79ce67
placex must not return a lookup housenumber
2017-10-25 20:11:51 +02:00
Sarah Hoffmann
7caa67d8ec
penalize housenumber after the postcode
2017-10-24 23:30:41 +02:00
Sarah Hoffmann
919b1b42fa
fix uninitialised rank variable when regrouping searches
2017-10-24 23:17:47 +02:00
Sarah Hoffmann
760807c5e0
revert use of global penalty for a search direction
...
Adding a penalty to a search description because there
is a term at the beginning which looks like a country
turned out to be a bad idea as there are too many
abbreviations around that match against frequently
matched words.
2017-10-24 22:42:29 +02:00
Sarah Hoffmann
9ac401267a
tiger import: convert counties to str
...
For python2 the gdal features come out as str and
cannot be combined with unicode strings.
2017-10-24 22:27:09 +02:00
marc tobias
a71200a57a
huge cleanup of tigerAddressImport.py
2017-10-24 22:27:09 +02:00
marc tobias
b062e7e774
huge cleanup of tigerAddressImport.py
2017-10-24 22:27:09 +02:00
Sarah Hoffmann
d42aa08705
Merge pull request #829 from lonvia/result-as-a-class
...
Use PlaceLookup in search for retriving place details
2017-10-24 22:17:59 +02:00
Sarah Hoffmann
282c6777ee
use PlaceLookup::loadParamArray in search and lookup
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
9981d74ee1
add loadParamArray function to PlaceLookup and use for reverse
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
1a4506f6ab
use PlaceLookup in search
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
914caab43d
make PlaceLookup::lookup() accept multiple results
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
5eb11800a7
replace SQL code in PlaceLookup with content of search's get_details
2017-10-23 23:30:53 +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
42f079c355
introduce Result class in Geocode and SearchDescription
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
8f884d7f23
Merge pull request #822 from mtmail/ui-allow-copypaste-combined-latlon
...
Ui allow copypaste combined latlon
2017-10-22 12:11:02 +02:00
Sarah Hoffmann
2cf21a3008
Merge pull request #819 from mtmail/tiger-2017-import
...
Tiger 2017 data no longer contains -divroad- field
2017-10-21 15:50:05 +02:00
marc tobias
2361ca2c71
UI: allow copy&pasting lat,lon into the lat search field
2017-10-21 14:28:28 +02:00
marc tobias
3cee2d185d
UI: allow copy&pasting lat,lon into the lat search field
2017-10-21 14:11:46 +02:00
Sarah Hoffmann
cc785ccad0
Merge pull request #821 from mtmail/ui-scrollwheel-minimap
...
UI: scrollwheel, minimap
2017-10-21 13:53:24 +02:00
marc tobias
da4a2b7b6e
UI: scrollwheel, minimap
2017-10-21 13:24:02 +02:00
Sarah Hoffmann
f17be2403f
Merge pull request #820 from mtmail/php-test-path-changed
...
Vagrant documentation: update path to php tests
2017-10-21 12:17:50 +02:00
marc tobias
47bb49384e
Vagrant documentation: update path to php tests
2017-10-21 11:46:12 +02:00
marc tobias
8eed1a8bec
Tiger 2017 data no longer contains -divroad- field
2017-10-20 15:17:51 +02:00
Sarah Hoffmann
fcf7fcee03
Merge pull request #814 from lonvia/phrase-as-a-class
...
Make phrases a class and add early checking of token validity
2017-10-15 18:07:55 +02:00
Sarah Hoffmann
5c18d6865d
adapt unit tests to new Phrase class
2017-10-14 20:45:20 +02:00
Sarah Hoffmann
cdf8c67898
fix CodeSniffer offences
2017-10-13 23:11:09 +02:00
Sarah Hoffmann
00265af528
move word recheck into token collection
...
Drop tokens for special and postcode searches already when
collecting them for ValidTokens when they cannot be found
in the normalized query.
2017-10-13 23:04:12 +02:00
Sarah Hoffmann
77b76ae51b
simplify cross-check of country tokens
...
Drop country tokens that do not match the country code list
early. Remove in turn the special country code check for
structured phrases. It is sufficient to do this during
word list building.
2017-10-13 22:23:39 +02:00
Sarah Hoffmann
9ef2370a2a
remove unused $aPossibleMainWordIDs array
2017-10-13 21:34:13 +02:00
Sarah Hoffmann
c700421aa7
add documentation for Phrase
2017-10-13 21:23:45 +02:00
Sarah Hoffmann
77abe882ab
take frequency scores from token description
...
No need to hand them in separately.
2017-10-12 22:59:07 +02:00
Sarah Hoffmann
023f94b066
convert phrase array to class
2017-10-12 22:37:44 +02:00
Sarah Hoffmann
7ea1ef3feb
take country names only from relations
2017-10-12 21:03:03 +02:00
Sarah Hoffmann
df463f4ea6
Show address rank in details and hide unset admin_level
...
Address rank explains better why the address parts are where
they are.
Fixes #766 .
2017-10-11 22:17:59 +02:00
Sarah Hoffmann
3da4c9c384
Sort results for near searches by proximity
...
If a reference coordinate is given, results really should be
sorted by distance to this point ignoring importance completely.
Fixes #796 .
2017-10-10 23:03:28 +02:00
Sarah Hoffmann
97bc185152
Merge pull request #812 from lonvia/search-as-a-class
...
Refactoring Search arrays
2017-10-10 21:08:11 +02:00
Sarah Hoffmann
c8780da19c
documentation for SearchContext and SearchDescription
2017-10-10 00:15:56 +02:00
Sarah Hoffmann
c02bf4986f
coding style and some documentation
2017-10-09 23:13:04 +02:00
Sarah Hoffmann
9a5d5d9aec
move complete search query code into SearchDescription
2017-10-09 22:55:50 +02:00
Sarah Hoffmann
2c62a8dbbc
adapt phpunit tests to new SearchContext class
2017-10-09 22:11:46 +02:00
Sarah Hoffmann
55629a4891
move country list to SearchContext
2017-10-08 23:33:54 +02:00