first-pass function for overpass working

This commit is contained in:
John Krauss
2017-01-04 16:59:48 +00:00
parent 000a440417
commit 218840bfa8
2 changed files with 60 additions and 26 deletions

View File

@@ -6,32 +6,6 @@ def get_overpass(query):
'''
Return results of a raw overpass query.
'''
'''
(node
[amenity]
(around:400,
40.704301, -73.936658);
way
[amenity]
(around:400,
40.704301, -73.936658))
'''
'''
(node [amenity] (around:400, 40.704301, -73.936658); way [amenity] (around:400, 40.704301, -73.936658))
'''
api = API()
response = api.Get(query)
return response['features']
#return [(el['lat'], el['lon'], el['type'], el['id'], json.dumps(el['tags']) )
# for el in response['elements'] if 'lat' in el][0]
def get_overpass_poi(within_geom, geom, filters=None, name=None):
'''
Simplified access to overpass API
'''
pass