MCPcopy 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
103def 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
111def get_type(tags):

Callers 1

Calls 1

popMethod · 0.80

Tested by

no test coverage detected