Sarah Hoffmann
689bcbd6ea
Merge pull request #3590 from lonvia/lookup-per-osm-type
...
Look up different OSM types in placex separately
2024-11-15 09:44:16 +01:00
Sarah Hoffmann
3acd7df5c4
Merge pull request #3588 from lonvia/optional-reverse-api
...
Add support for adding endpoints to server conditionally
2024-11-14 19:33:57 +01:00
Sarah Hoffmann
7d418da564
look up different OSM types in placex separately
...
There are separate indexes on placex for the different OSM types.
PostgreSQL can only use these indexes if the type is fixed per query.
2024-11-14 17:47:01 +01:00
Sarah Hoffmann
20d0fb35ce
enable search endpoint only when search table is available
2024-11-14 08:53:09 +01:00
Sarah Hoffmann
754ff15ebd
move server route creation into async function
2024-11-13 21:27:14 +01:00
danieldegroot2
7c9002cae7
Update lookup.py - Correct spelling for "simultaneously"
...
Corrects minor spelling mistake.
2024-11-13 20:35:37 +01:00
Sarah Hoffmann
2735ea768a
look up all places at once
2024-11-13 14:21:05 +01:00
Sarah Hoffmann
122ecd4626
remove remaining pylint hints
2024-11-10 22:49:29 +01:00
Sarah Hoffmann
1f07967787
fix style issue found by flake8
2024-11-10 22:47:14 +01:00
Sarah Hoffmann
b9e4563beb
fix backward compatibility issues with Python 3.7
2024-10-25 23:43:59 +02:00
Sarah Hoffmann
2c0f2e1ede
remove now unnecessary type-ignores
2024-10-25 17:56:47 +02:00
Sarah Hoffmann
5160a1d577
get bbox of postcode areas into results
2024-09-30 08:58:40 +02:00
Sarah Hoffmann
83013f819b
derive bbox size for postcode nodes from rank_search
2024-09-30 08:58:40 +02:00
Sarah Hoffmann
15eb7f0bb1
add new format 'raw' for CLI commands
...
This dumps the original results with all details available.
2024-09-30 08:58:40 +02:00
Sarah Hoffmann
b2dc01ad81
Revert "work round typing bug in pyosmium 4.0"
...
This reverts commit f960a9bf7f .
2024-09-27 20:19:49 +02:00
Sarah Hoffmann
90e207a497
drop automatic migration from versions <4.3
2024-09-27 12:07:48 +02:00
Sarah Hoffmann
f960a9bf7f
work round typing bug in pyosmium 4.0
2024-09-24 11:51:01 +02:00
Sarah Hoffmann
a690605a96
remove support for unindexed tokens
...
This was a special feature of the legacy tokenizer who would not
index very frequent tokens.
2024-09-22 10:39:10 +02:00
Sarah Hoffmann
b54ff7d766
remove all references to a module path
...
No longer used now that legacy tokenizer is gone.
2024-09-21 17:39:01 +02:00
Sarah Hoffmann
9734bbf240
remove warning about now removed legacy tokenizer
2024-09-21 17:12:35 +02:00
Sarah Hoffmann
b87d6226fb
remove legacy tokenizer and direct tests
2024-09-21 11:38:08 +02:00
Sarah Hoffmann
7717bbf59d
remove remaining references to php code
2024-09-15 15:33:59 +02:00
Sarah Hoffmann
6bc044d9c7
remove website setup
...
The website directory was for PHP scripts only and is no longer
needed.
2024-09-15 11:58:55 +02:00
Sarah Hoffmann
3734f1d0b8
prepare 4.5.0 release
2024-09-11 17:51:38 +02:00
Sarah Hoffmann
882fb16881
restrict use of os.environ in Configuration
...
Only use the OS environment, when the environ parameter is set
to None. Currently it would use the OS env on an empty dict.
2024-09-01 16:17:30 +02:00
Sarah Hoffmann
7f11de0db9
allow None and str for project_dir in NominatimAPI init
2024-08-22 22:49:12 +02:00
Sarah Hoffmann
fd9437277e
import requests library later than osmium
...
requests will usually be pulled in by osmium and is therefore not
a direct dependency of nominatim. Make sure it is only used, when
osmium is present.
2024-08-19 16:36:09 +02:00
Sarah Hoffmann
adce7261ac
translate UsageError in CLI API commands
...
UsageErrors are handled specially and don't show backtraces
unless explicitly requested. We want the same behaviour for
errors coming from the API functions.
2024-08-19 12:02:33 +02:00
Sarah Hoffmann
b01a836d1e
use NominatimAPI in with context in CLI tool
2024-08-19 11:42:22 +02:00
Sarah Hoffmann
c2594aca40
make NominatimAPI[Async] a context manager
...
If close() isn't properly called, it can lead to odd error messages
about uncaught exceptions.
2024-08-19 11:31:38 +02:00
Sarah Hoffmann
feb8cc29a5
improve error message on missing modules from nominatim_api
2024-08-17 10:03:36 +02:00
Sarah Hoffmann
d648561a87
CLI: more useful error messages on JSON formatting errors
2024-08-16 19:47:48 +02:00
Sarah Hoffmann
8e8f7a641b
use custom result formatters in CLI commands
2024-08-16 19:30:57 +02:00
Sarah Hoffmann
19eb4d91a0
add documentation for custom formatters
2024-08-14 18:24:40 +02:00
Sarah Hoffmann
5a61d3d5f6
configurable error formatting and content type in result formatter
2024-08-14 12:00:08 +02:00
Sarah Hoffmann
52ee5dc73c
make API formatter loadable from project directory
2024-08-13 23:21:38 +02:00
Sarah Hoffmann
0c25e80be0
make formatting module non-static
2024-08-13 22:39:43 +02:00
Sarah Hoffmann
4e0602919c
move ASGIAdoptor out of v1 module
2024-08-13 21:32:11 +02:00
Sarah Hoffmann
d22ca186e4
remove v1-specific functions from ASGIAdaptor
2024-08-13 19:38:14 +02:00
Sarah Hoffmann
3905dd68dd
indexing: precompute row counts
...
Doing this once for the whole batch of ranks saves about
half a second for small imports. Speeds up BDD tests.
2024-08-12 14:57:26 +02:00
Sarah Hoffmann
fd33ef92dc
add deprecation warnings in the code
2024-08-09 19:25:15 +02:00
Sarah Hoffmann
6527b7cdcd
fail if osm2pgsql is not recent enough
2024-08-09 19:25:15 +02:00
Sarah Hoffmann
3cc20581ae
osm2pgsq: do not use deprecated tablespace options
2024-08-09 19:25:15 +02:00
marc tobias
0ba3d01982
Development environment: add missing dependencies
2024-08-09 17:57:18 +02:00
Sarah Hoffmann
f6e792f31b
Merge pull request #3502 from mtmail/check-database-check-another-index
...
check-database: check for another required db index
2024-08-08 15:21:38 +02:00
Sarah Hoffmann
d1e7b85cc5
fix dangling links in documentation
2024-08-07 16:58:45 +02:00
marc tobias
7cf21f8caf
check-database: check for another required db index
2024-08-07 15:19:40 +02:00
marc tobias
f0390cfe85
add-data: warn and exit if database is frozen
2024-08-05 16:14:19 +02:00
Sarah Hoffmann
a97bfaf26c
fix postcode lookup with legacy tokenizer
2024-07-31 14:54:55 +02:00
Sarah Hoffmann
cfe5284f64
make housenumber search work with non-indexed partials
2024-07-31 14:09:35 +02:00