If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
import requests, json

def geocode(**kw):
    if not 'sensor' in kw:
        kw['sensor'] = 'false'
    raw = requests.get(
        'http://maps.googleapis.com/maps/api/geocode/json',
        params=kw)
    res = json.loads(raw.text)
    return res

Related slices

Comments (0)


Hosting graciously provided by:
Python Anywhere