コード例 #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)