Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ get_coord
Function
get_coord
tools/python/mixed_to_geojson.py:103–108 ·
view source on GitHub ↗
(tags)
Source
from the content-addressed store, hash-verified
101
102
103
def
get_coord(tags):
104
lat = tags.pop(
'lat'
, None)
105
lon = tags.pop(
'lon'
, None)
106
if
lat is None or lon is None:
107
return
None
108
return
[float(lon), float(lat)]
109
110
111
def
get_type(tags):
Callers
1
mixed_to_geojson.py
File · 0.85
Calls
1
pop
Method · 0.80
Tested by
no test coverage detected