예제 #1
0
파일: app.py 프로젝트: place4word/ThisPlace
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
파일: app.py 프로젝트: amueller/ThisPlace
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
파일: app.py 프로젝트: place4word/ThisPlace
def hashToLatLng(fourwords):
    try:
        lat, lng = thisplace.decode(fourwords)
        return {"lat": lat, "lng": lng}
    except:
        abort(404)
예제 #4
0
파일: app.py 프로젝트: amueller/ThisPlace
def hashToLatLng(fourwords):
    try:
        lat,lng = thisplace.decode(fourwords)
        return {"lat": lat, "lng": lng}
    except:
        abort(404)