INNER CODE UNIT · Python
GET
mongodb/mongo-snippets · 2dsphere/www.py:33
def GET(self):
return render.mapstest()
class GeoSearch(object):
def GET(self):
collection = db[geo_collection['collection_name']]
# Web.py doesn't support arrays of objects, so we use two
# arrays, one with lats, one with lngs.
input = web.input(point_lats=[], point_lngs=[]) # must fix...
mode = input['mode']
path_count = int(input['path_count'])
point_lats = input['point_lats']
point_lngs = input['point_lngs']