mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
add tests for details result formatting and trim results
Values that are None are no longer included in the output to save a bit of bandwidth.
This commit is contained in:
@@ -105,6 +105,9 @@ class SearchResult:
|
||||
|
||||
geometry: Dict[str, str] = dataclasses.field(default_factory=dict)
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
if self.indexed_date is not None and self.indexed_date.tzinfo is None:
|
||||
self.indexed_date = self.indexed_date.replace(tzinfo=dt.timezone.utc)
|
||||
|
||||
@property
|
||||
def lat(self) -> float:
|
||||
|
||||
Reference in New Issue
Block a user