def showMap(fourwords): try: lat, lng = thisplace.decode(fourwords) return template('map', lat=lat, lng=lng, fourwords=fourwords) except: return template('help', err="Could not find location {}".format(fourwords), **example_locs)
def hashToLatLng(fourwords): try: lat, lng = thisplace.decode(fourwords) return {"lat": lat, "lng": lng} except: abort(404)
def hashToLatLng(fourwords): try: lat,lng = thisplace.decode(fourwords) return {"lat": lat, "lng": lng} except: abort(404)