Exemplo n.º 1
0
def post():
    form = addressform(request.form)
    latlng = geocoding(form.address.data)
    if request.method == 'POST' and form.validate() and latlng!=0:
        food,shop = hotpepper(latlng)
        address = form.address.data
        form = addressform()
        return render_template('index.html',form=form,address=address,food=food,shop=shop)
    else:
        form=addressform()
        return render_template('index.html',form=form,shop=0,address=0)
Exemplo n.º 2
0
def main(address):
    hotpepper(geocoding(address))