Skip to content

Commit

Permalink
Merge pull request #207 from InTaVia/ms/206-postprocessing-of-the-coo…
Browse files Browse the repository at this point in the history
…rdinates-of-places-is-throwing-index-errors

fix: fixes an error where lng/lat were not correctly extracted
  • Loading branch information
sennierer authored Oct 24, 2023
2 parents d8d4d97 + 3087b13 commit 521180a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intavia_backend/models_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def pp_lat_long(field, item, data):
]
for it in item:
if it.startswith("Point"):
lst_item = it.split(" ")
item = Point(coordinates=[lst_item[2], lst_item[3]])
lst_item = re.findall(r"([0-9\.]+)", it)
item = Point(coordinates=[lst_item[0], lst_item[1]])
return item


Expand Down

0 comments on commit 521180a

Please sign in to comment.