Skip to content

Commit

Permalink
separate map origin and osm
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaMorsali committed Oct 18, 2022
1 parent edbce30 commit 5b098e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified examples/iai-drive.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions invertedai/api_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def location_info(
response["static_actors"] = [
StaticMapActor(**actor) for actor in response["static_actors"]
]
if response["osm_map"] is not None:
response["osm_map"] = (response["osm_map"], response["map_origin"])
del response["map_origin"]
return LocationResponse(**response)
except TryAgain as e:
if timeout is not None and time.time() > start + timeout:
Expand Down

0 comments on commit 5b098e9

Please sign in to comment.