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
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
b87d6226fb
remove legacy tokenizer and direct tests
2024-09-21 11:38:08 +02:00
Sarah Hoffmann
3734f1d0b8
prepare 4.5.0 release
2024-09-11 17:51:38 +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
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
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
d1e7b85cc5
fix dangling links in documentation
2024-08-07 16:58:45 +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
Sarah Hoffmann
9659afbade
port code to psycopg3
2024-07-29 08:50:19 +02:00
Sarah Hoffmann
8cb0d5b262
make sure SQLAlchemy can handle the loaded dialect
...
The psycopg dialect was only added in SQLAlchemy 2.0. To avoid loading
errors when SQLAlchemy 1.4 is installed together with psycopg3,
check that the dialect is really available.
2024-07-02 15:55:23 +02:00
Mateusz Konieczny
e51973f8b1
fix some typos
2024-07-01 15:03:57 +02:00
Sarah Hoffmann
4da4cbfe27
reduce from 3 to 2 packages
2024-06-28 09:13:22 +02:00
Sarah Hoffmann
ab746eebaf
export UsageError and Configuration in api directly
...
Library users should not have to deal with the core package directly.
2024-06-26 11:52:47 +02:00
Sarah Hoffmann
63da70685a
fix linting issues
2024-06-26 11:52:47 +02:00
Sarah Hoffmann
2bab0ca060
port unit tests to new python package layout
2024-06-26 11:52:47 +02:00
Sarah Hoffmann
75abf237a6
add missing __init__.py
2024-06-26 11:52:47 +02:00
Sarah Hoffmann
dc7c11a9d1
adapt plugin imports
2024-06-26 11:52:47 +02:00
Sarah Hoffmann
6e89310a92
split code into submodules
2024-06-26 11:52:47 +02:00