Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
def hashToLatLng(fourwords):
    try:
        lat, lng = thisplace.decode(fourwords)
        return {"lat": lat, "lng": lng}
    except:
        abort(404)
Пример #4
0
def hashToLatLng(fourwords):
    try:
        lat,lng = thisplace.decode(fourwords)
        return {"lat": lat, "lng": lng}
    except:
        abort(404)