mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-13 06:14:07 +00:00
rename lookup() API to details and add lookup call
The initial plan to serve /details and /lookup endpoints from the same API call turned out to be impractical, so the API now also has deparate functions for both.
This commit is contained in:
@@ -292,7 +292,7 @@ class APIDetails:
|
||||
if args.polygon_geojson:
|
||||
details.geometry_output = napi.GeometryFormat.GEOJSON
|
||||
|
||||
result = api.lookup(place, details)
|
||||
result = api.details(place, details)
|
||||
|
||||
if result:
|
||||
output = api_output.format_result(
|
||||
|
||||
Reference in New Issue
Block a user