Commit Graph

4860 Commits

Author SHA1 Message Date
Sarah Hoffmann
6299afcad7
Merge pull request #3554 from lonvia/postcode-bbox
Improve bounding boxes for postcodes
2024-09-30 10:50:43 +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
c2aa7a9b43
Merge pull request #3552 from lonvia/drop-some-migrations
Restrict migrations to versions 4.3+
2024-09-27 19:46:37 +02:00
Sarah Hoffmann
90e207a497 drop automatic migration from versions <4.3 2024-09-27 12:07:48 +02:00
Sarah Hoffmann
d856788bf5
Merge pull request #3542 from lonvia/remove-legacy-tokenizer
Remove legacy tokenizer
2024-09-24 15:42:40 +02:00
Sarah Hoffmann
f960a9bf7f work round typing bug in pyosmium 4.0 2024-09-24 11:51:01 +02:00
Sarah Hoffmann
188c770f5c supress new pylint errors 2024-09-22 21:58:25 +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
290c22a153 remove PHPCS configuration 2024-09-21 18:27:19 +02:00
Sarah Hoffmann
4825a0bda3 remove documentation around legacy tokenizer 2024-09-21 18:27:01 +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
d4f3eda314 remove special casing for legacy tokenizer from BDD tests 2024-09-21 17:07:32 +02:00
Sarah Hoffmann
74c39267d9 remove PostgreSQL legacy module 2024-09-21 11:51:58 +02:00
Sarah Hoffmann
b87d6226fb remove legacy tokenizer and direct tests 2024-09-21 11:38:08 +02:00
Sarah Hoffmann
e92e03e2e6
Merge pull request #3536 from lonvia/remove-php
Remove PHP frontend
2024-09-16 21:49:01 +02:00
Sarah Hoffmann
9545f0bf80 add migration warning for PHP frontend removal 2024-09-16 09:40:26 +02:00
Sarah Hoffmann
c4f30de7a3 docs: remove all references to PHP 2024-09-15 16:08:26 +02:00
Sarah Hoffmann
7717bbf59d remove remaining references to php code 2024-09-15 15:33:59 +02:00
Sarah Hoffmann
7ba5152493 remove PHP frontend support from BDD tests 2024-09-15 13:51:51 +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
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 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