mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
allow lower case OSM types in lookup query
This commit is contained in:
@@ -377,7 +377,7 @@ async def lookup_endpoint(api: napi.NominatimAPIAsync, params: ASGIAdaptor) -> A
|
|||||||
for oid in (params.get('osm_ids') or '').split(','):
|
for oid in (params.get('osm_ids') or '').split(','):
|
||||||
oid = oid.strip()
|
oid = oid.strip()
|
||||||
if len(oid) > 1 and oid[0] in 'RNWrnw' and oid[1:].isdigit():
|
if len(oid) > 1 and oid[0] in 'RNWrnw' and oid[1:].isdigit():
|
||||||
places.append(napi.OsmID(oid[0], int(oid[1:])))
|
places.append(napi.OsmID(oid[0].upper(), int(oid[1:])))
|
||||||
|
|
||||||
if len(places) > params.config().get_int('LOOKUP_MAX_COUNT'):
|
if len(places) > params.config().get_int('LOOKUP_MAX_COUNT'):
|
||||||
params.raise_error('Too many object IDs.')
|
params.raise_error('Too many object IDs.')
|
||||||
|
|||||||
Reference in New Issue
Block a user