forked from hans/Nominatim
split SearchResult type
Use adapted types for the different result types. This makes it easier to have adapted output formatting and means there are only result fields that are filled.
This commit is contained in:
@@ -282,7 +282,7 @@ class APIDetails:
|
||||
if result:
|
||||
output = api_output.format_result(
|
||||
result,
|
||||
'details-json',
|
||||
'json',
|
||||
{'locales': locales,
|
||||
'group_hierarchy': args.group_hierarchy})
|
||||
# reformat the result, so it is pretty-printed
|
||||
|
||||
Reference in New Issue
Block a user