Sarah Hoffmann
|
8adeaa2c7e
|
fix regression with lat/lon in json output
lat, lon is returned as strings in the PHP output. Reproduce that in the
Python frontend.
See #3115.
|
2023-08-01 14:27:43 +02:00 |
|
Sarah Hoffmann
|
d15f605129
|
allow OPTIONS method in starlette CORS middleware
If not allowed, then the middleware will return a 400 on pre-flight
CORS requests.
Fixes #3129.
|
2023-08-01 11:12:36 +02:00 |
|
Sarah Hoffmann
|
252fe42612
|
Merge pull request #3122 from miku0/sanitizer-final
Adds sanitizer for Japanese addresses to correspond to block address
|
2023-08-01 10:38:58 +02:00 |
|
miku0
|
67e1c7dc72
|
Moved KANJI_MAP to icu-rules
|
2023-07-31 11:57:49 +00:00 |
|
Sarah Hoffmann
|
c29ffc38e6
|
Merge pull request #3128 from lonvia/fix-classtype-lookup
Fix query over classtype tables
|
2023-07-31 10:20:58 +02:00 |
|
miku0
|
4d61cc87cf
|
Add the test of reconbine_place
|
2023-07-31 02:39:56 +00:00 |
|
miku0
|
2350018106
|
Fixed cosmetic issues
|
2023-07-31 02:39:04 +00:00 |
|
Sarah Hoffmann
|
8fc3dd9457
|
fix query over classtype tables
The case statement prevented the index on the classtype tables
from being used. Move the case statement inside the geometry
function instead.
|
2023-07-30 23:51:36 +02:00 |
|
Sarah Hoffmann
|
d97ca9fcb2
|
Merge pull request #3127 from lonvia/file-logging
Add file logging for Python frontend
|
2023-07-30 21:22:48 +02:00 |
|
Sarah Hoffmann
|
e523da9e12
|
reintroduce file logging for Python frontend
|
2023-07-30 19:58:00 +02:00 |
|
miku0
|
67706cec4e
|
add @fail-legacy
|
2023-07-27 07:33:53 +00:00 |
|
miku0
|
fac8c32cda
|
Moved KANJI_MAP to global variable
|
2023-07-26 21:43:22 +00:00 |
|
Sarah Hoffmann
|
1c6f426363
|
Merge pull request #3125 from lonvia/warm-to-python
Port warm and export functions to Python
|
2023-07-26 22:37:37 +02:00 |
|
Sarah Hoffmann
|
8cba65809c
|
older version of Postgres cannot convert jsonb to int
|
2023-07-26 17:45:21 +02:00 |
|
Sarah Hoffmann
|
77ed4f98bb
|
older Python versions need a reference to the loop for a lock
|
2023-07-26 15:17:18 +02:00 |
|
miku0
|
848e5ac5de
|
Correction to PR's comment
|
2023-07-26 09:50:25 +00:00 |
|
Sarah Hoffmann
|
9448c5e16f
|
add tests for new arm and export Python functions
|
2023-07-26 11:09:52 +02:00 |
|
miku0
|
0722495434
|
add japanese sanitizer
|
2023-07-26 07:54:58 +00:00 |
|
Sarah Hoffmann
|
d545c6d73c
|
mostly remove php-cgi requirement
This is now only needed for BDD tests against the php API.
|
2023-07-26 00:10:11 +02:00 |
|
Sarah Hoffmann
|
f69fea4210
|
remove now unused run_api_script function
|
2023-07-25 22:45:29 +02:00 |
|
Sarah Hoffmann
|
4cd0a4ced4
|
remove now unused run_legacy_script()
|
2023-07-25 21:39:23 +02:00 |
|
Sarah Hoffmann
|
0804cc0cff
|
port export function to Python
Some of the parameters have been renoved as they don't make sense
anymore.
|
2023-07-25 21:39:23 +02:00 |
|
Sarah Hoffmann
|
faeee7528f
|
move warm script to python code
|
2023-07-25 21:39:23 +02:00 |
|
Sarah Hoffmann
|
261e0cfd5a
|
Merge pull request #3121 from lonvia/port-remaining-api-calls
Port remaining API endpoints to Python
|
2023-07-25 20:56:38 +02:00 |
|
Sarah Hoffmann
|
66ecb56cea
|
add tests for new endpoints
|
2023-07-25 10:57:19 +02:00 |
|
Sarah Hoffmann
|
79bd54f610
|
add /polygons endpoint to Python v1 API
|
2023-07-22 20:59:13 +02:00 |
|
Sarah Hoffmann
|
30cef4d5fd
|
add deletable endpoint
|
2023-07-22 17:21:24 +02:00 |
|
Sarah Hoffmann
|
8d52032263
|
remove debug print
|
2023-07-22 13:54:23 +02:00 |
|
Sarah Hoffmann
|
4a5786334b
|
Merge pull request #3117 from lonvia/fix-assorted-search-errors
More improvements to the Python search algorithm
|
2023-07-22 11:45:36 +02:00 |
|
Sarah Hoffmann
|
587698a6f3
|
disallow special housenumber search with a single frequent partial
|
2023-07-20 18:05:54 +02:00 |
|
Sarah Hoffmann
|
927d2cc824
|
do not split names from typed phrases
When phrases are typed, they should only contain exactly one term.
|
2023-07-17 20:09:08 +02:00 |
|
Sarah Hoffmann
|
7f9cb4e68d
|
split up get_assignment functon in more readable parts
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
d48ea4f22c
|
disallow address searches that start with a postcode
These are postcode searches and nothing else.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
412bd2ec20
|
block search queries with too many tokens
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
1c189060c2
|
simplify yield_lookups() function
Move creation of field lookups in separate functions to make the code
more readable.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
4a00a3c0f5
|
penalize name token splitting when phrases are used
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
8366e4ca83
|
penalize search with frequent partials
Avoid search against frequent partials if we have already looked for
the full name equivalents.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
283db76e45
|
avoid splitting of first token when a housenumber is present
This only covers the case of <poi name> <street name> <housenumber>
which is exceedingly rare.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
8a36ed4f6f
|
increase threshold for full name searches
They still should be preferrred over expensive partial name searches.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
d0f45155c8
|
fix search for housenumber names
The search still included a lookup of housenumbers in children which is
wrong.
|
2023-07-17 16:27:25 +02:00 |
|
Sarah Hoffmann
|
9fc235d670
|
Merge pull request #3112 from jenkin/fix-polgyon-polygon-typo
fix polgyon polygon typo
|
2023-07-17 14:20:14 +02:00 |
|
Alessio Cimarelli
|
42c549274f
|
fix polgyon polygon typo
|
2023-07-17 10:11:57 +02:00 |
|
Sarah Hoffmann
|
2e56182a7f
|
Merge pull request #3110 from lonvia/sql-lambda-queries
Use SQLAlchemy's lambda statements
|
2023-07-14 18:57:31 +02:00 |
|
Sarah Hoffmann
|
7932b1849b
|
selected lambdas for search
|
2023-07-14 15:43:29 +02:00 |
|
Sarah Hoffmann
|
886374d779
|
add lambdas for layer filters
|
2023-07-14 15:27:20 +02:00 |
|
Sarah Hoffmann
|
d42e2e391f
|
avoid forwarding variables via SQL
|
2023-07-14 15:27:16 +02:00 |
|
Sarah Hoffmann
|
f264eaeda2
|
make SQL statements in reverse lambda functions
Further improves internal caching of statements by SQLAlchemy.
|
2023-07-14 14:39:14 +02:00 |
|
Sarah Hoffmann
|
35fd74af6d
|
Merge pull request #3096 from alfmarcua/search-within-countries-parameter
Parameterise the search only within countries
|
2023-07-12 17:45:55 +02:00 |
|
alfmarcua
|
4b53cf1464
|
Split lookupInCountry in two functions and document NOMINATIM_SEARCH_WITHIN_COUNTRIES parameter
|
2023-07-12 13:53:23 +02:00 |
|
alfmarcua
|
26e78efbb9
|
Parameterise the search only within countries
|
2023-07-12 13:53:23 +02:00 |
|