Sarah Hoffmann
06683edaae
remove PHP tests
2024-09-15 11:26:49 +02:00
Sarah Hoffmann
979aebbfcd
remove PHP frontend
2024-09-15 11:22:13 +02:00
Sarah Hoffmann
3734f1d0b8
prepare 4.5.0 release
v4.5.0
2024-09-11 17:51:38 +02:00
Sarah Hoffmann
a66c063314
Merge pull request #3532 from lonvia/refresh-docs
...
Update library documentation
2024-09-11 10:27:09 +02:00
Sarah Hoffmann
fe0ade81f5
docs: improve contents listing
2024-09-10 20:41:35 +02:00
Sarah Hoffmann
f52212abbd
docs: rework library getting started
2024-09-10 20:41:35 +02:00
Sarah Hoffmann
8f30a32466
docs: avoid loading external fonts
2024-09-10 20:41:35 +02:00
Sarah Hoffmann
157c3cccd1
fix permalink character
2024-09-10 20:41:35 +02:00
Sarah Hoffmann
3e6be0b0be
Merge pull request #3530 from lonvia/clean-use-of-os-environ
...
Don't use OS environment variables when an explicit environment was set
2024-09-02 09:49:10 +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
72be143cef
Merge pull request #3523 from mtmail/import-styles-country-code
...
Import-Styles.md - clarify country_code key
2024-08-26 14:03:47 +02:00
Sarah Hoffmann
086116b3a1
Merge pull request #3525 from lonvia/project-dir-less-library
...
Simplify handling of project directory for Nominatim library
2024-08-26 13:54:35 +02:00
marc tobias
ed7f0d9e46
Import-Styles.md - clarify country_code key
2024-08-23 13:50:25 +02:00
mtmail
b5a6d7a4a6
fix typo in Import-Styles.md
2024-08-23 00:40:13 +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
f535340d5a
Merge pull request #3520 from lonvia/restrict-interpolation-range
...
Restrict interpolation housenumbers to 0-999999
2024-08-20 09:03:52 +02:00
Sarah Hoffmann
c7d80a2cc8
Merge pull request #3521 from lonvia/make-requests-optional
...
Fix error around missing requests library
2024-08-20 09:03:39 +02:00
Sarah Hoffmann
0efdd1b9a6
restrict interpolation housenumbers to 0-999999
...
Ensures that the numbers fit into integers.
2024-08-19 20:40:25 +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
968f1cd453
Merge pull request #3519 from lonvia/api-error-handling
...
Improve error handling around CLI api commands
2024-08-19 16:26:18 +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
8b41b80bff
Merge pull request #3517 from lonvia/improve-custom-formatter
...
Extend use of custom result formatters to CLI tool
2024-08-18 10:20:53 +02:00
Sarah Hoffmann
feb8cc29a5
improve error message on missing modules from nominatim_api
2024-08-17 10:03:36 +02:00
Sarah Hoffmann
1cd8ffad0b
improve docs on custom result formatters
...
Adds section on formatting errors and using CLI. Improves wording
in others.
2024-08-16 22:11:41 +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
69369c08c8
add missing includes in result fomatting example
2024-08-16 11:32:38 +02:00
Sarah Hoffmann
fdb3fc2f7b
Merge pull request #3516 from lonvia/fixed-country-order
...
Ensure consistent country assignments
2024-08-15 16:54:38 +02:00
Sarah Hoffmann
054efc8311
ensure consistent country assignments
...
When OSM data has areas with overlapping countries, use the country
assignments from the pre-defined country grid for tie-breaking.
If that fails, fall back to the country with the smaller partition
number.
2024-08-15 14:26:09 +02:00
Sarah Hoffmann
d7cf81c047
Merge pull request #3515 from lonvia/custom-result-formatting
...
Add the capability to define custom formatting functions for API output
2024-08-15 09:26:27 +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
4f4a288757
Merge pull request #3514 from lonvia/remove-pythonpath
...
Vagrant install: remove custom python path
2024-08-13 15:18:48 +02:00
Sarah Hoffmann
14cc047cf4
vagrant install: remove custom python path
2024-08-13 09:31:36 +02:00
Sarah Hoffmann
043d52821c
Merge pull request #3510 from lonvia/indexing-precompute-count
...
Indexing: precompute counts of affected rows
2024-08-12 23:55:19 +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
bd0316b5c3
Merge pull request #3509 from lonvia/deprecations
...
Add deprecation warnings and check for osm2pgsql version
2024-08-12 11:27:56 +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
Sarah Hoffmann
a2a44b875a
add deprecation warnings throughout docs
2024-08-09 19:25:15 +02:00
Sarah Hoffmann
a14ab1c08c
Merge pull request #3506 from mtmail/development-environment-more-dependencies
...
Development environment: add missing dependencies
2024-08-09 19:24:56 +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