Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareNotIn NameLoad TupleLoad Str Str body Raise NameLoad Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise NameLoad Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict If BoolOpAnd NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str Dict Str Str AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str BinOpMod AttributeLoad NameLoad attr NameLoad Call AttributeLoad Call NameLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str NameLoad Call AttributeLoad Call NameLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad If UnaryOpNot NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad orelse If BoolOpAnd NameLoad CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Return TupleLoad NameLoad TupleLoad NameLoad NameLoad decorator_list If NameLoad body Return Call NameLoad SubscriptLoad NameLoad Index Num orelse Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq NameLoad Str body Raise Call NameLoad Str orelse If CompareEq NameLoad Str body Raise Call NameLoad Str orelse If CompareEq NameLoad Str body Raise Call NameLoad Str orelse If CompareEq NameLoad Str body Raise Call NameLoad Str orelse Raise Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list
N/A N/A Google Maps V3 geocoder.

Largely adapted from the existing v2 geocoder with modifications made where
possible to support the v3 api as well as to clean up the class without
breaking its compatibility or diverging its api too far from the rest of the
geocoder classes.
 N/A base64 N/A hashlib N/A hmac urllib urlencode urllib2 urlopen N/A N/A N/A json N/A N/A N/A ImportError N/A N/A N/A N/A simplejson json N/A N/A N/A ImportError N/A N/A gluon.contrib.simplejson json base Geocoder GeocoderResultError N/A util GoogleV3 N/A Geocoder N/A N/A Geocoder using the Google Maps v3 API. __init__ N/A N/A self domain protocol client_id secret_key N/A maps.googleapis.com http None None N/A N/A Initialize a customized Google geocoder.

        API authentication is only required for Google Maps Premier customers.

        ``domain`` should be the localized Google Maps domain to connect to. The default
        is 'maps.google.com', but if you're geocoding address in the UK (for
        example), you may want to set it to 'maps.google.co.uk' to properly bias results.

        ``protocol`` http or https.
        
        ``client_id`` Premier account client id.
        
        ``secret_key`` Premier account secret key.
         N/A N/A N/A N/A super GoogleV3 self __init__ N/A N/A protocol N/A http https N/A N/A ValueError Supported protocols are http and https. N/A N/A client_id N/A secret_key N/A N/A ValueError Must provide secret_key with client_id. N/A N/A secret_key N/A client_id N/A N/A ValueError Must provide client_id with secret_key. N/A N/A self domain N/A N/A domain strip / N/A N/A self protocol protocol N/A N/A self doc N/A N/A N/A client_id secret_key N/A N/A N/A self client_id client_id N/A N/A self secret_key secret_key N/A N/A self premier True N/A N/A N/A self premier False N/A get_signed_url N/A N/A self params N/A N/A N/A Returns a Premier account signed url. N/A N/A params N/A client N/A self client_id N/A url_params N/A protocol domain params N/A self protocol N/A self domain N/A urlencode params N/A secret N/A N/A base64 urlsafe_b64decode N/A self secret_key N/A N/A url_params N/A url_part N/A /maps/api/geocode/json?%(params)s url_params N/A signature N/A N/A hmac new secret N/A url_params N/A url_part N/A hashlib sha1 N/A N/A url_params N/A signature N/A N/A base64 urlsafe_b64encode N/A N/A signature digest N/A N/A %(protocol)s://%(domain)s%(url_part)s&signature=%(signature)s url_params N/A get_url N/A N/A self params N/A N/A N/A Returns a standard geocoding api url. N/A N/A http://%(domain)s/maps/api/geocode/json?%(params)s N/A domain params N/A self domain N/A urlencode params N/A geocode_url N/A N/A self url exactly_one N/A True N/A N/A Fetches the url and returns the result. N/A N/A N/A N/A util logger debug N/A Fetching %s... url N/A page N/A urlopen url N/A N/A N/A self parse_json page exactly_one N/A geocode N/A N/A self string bounds region language sensor exactly_one N/A None None None False True N/A N/A Geocode an address.

        ``string`` (required) The address that you want to geocode.

        ``bounds`` (optional) The bounding box of the viewport within which
        to bias geocode results more prominently.

        ``region`` (optional) The region code, specified as a ccTLD
        ("top-level domain") two-character value.

        ``language`` (optional) The language in which to return results.
        See the supported list of domain languages. Note that we often update
        supported languages so this list may not be exhaustive. If language is
        not supplied, the geocoder will attempt to use the native language of
        the domain from which the request is sent wherever possible.

        ``sensor`` (required) Indicates whether or not the geocoding request
        comes from a device with a location sensor.
        This value must be either True or False.
         N/A N/A isinstance string unicode N/A N/A string N/A N/A string encode utf-8 N/A params N/A address sensor N/A N/A self format_string string N/A N/A N/A str sensor lower N/A bounds N/A N/A N/A params N/A bounds bounds N/A region N/A N/A N/A params N/A region region N/A language N/A N/A N/A params N/A language language N/A N/A N/A self premier N/A N/A url N/A N/A self get_url params N/A N/A url N/A N/A self get_signed_url params N/A N/A N/A self geocode_url url exactly_one N/A reverse N/A N/A self point language sensor exactly_one N/A None False False N/A N/A Reverse geocode a point.
        ``point`` (required) The textual latitude/longitude value for which
        you wish to obtain the closest, human-readable address
        
        ``language`` (optional) The language in which to return results.
        See the supported list of domain languages. Note that we often update
        supported languages so this list may not be exhaustive. If language is
        not supplied, the geocoder will attempt to use the native language of
        the domain from which the request is sent wherever possible.

        ``sensor`` (required) Indicates whether or not the geocoding request
        comes from a device with a location sensor.
        This value must be either True or False.
         N/A params N/A latlng sensor point N/A N/A N/A str sensor lower N/A language N/A N/A N/A params N/A language language N/A N/A N/A self premier N/A N/A url N/A N/A self get_url params N/A N/A url N/A N/A self get_signed_url params N/A N/A N/A self geocode_url url exactly_one N/A parse_json N/A N/A self page exactly_one N/A True N/A N/A Returns location, (latitude, longitude) from json feed. N/A N/A N/A isinstance page basestring N/A N/A page N/A N/A util decode_page page N/A N/A self doc N/A N/A json loads page N/A places N/A N/A N/A self doc get results N/A N/A N/A places N/A N/A N/A check_status N/A N/A N/A self doc get status N/A None N/A N/A N/A exactly_one N/A N/A len places 1 N/A N/A N/A ValueError N/A Didn't find exactly one placemark! (Found %d) N/A len places parse_place N/A N/A place N/A N/A N/A Get the location, lat, lng from a single json place. N/A location N/A N/A place get formatted_address N/A latitude N/A N/A N/A place N/A geometry N/A location N/A lat N/A longitude N/A N/A N/A place N/A geometry N/A location N/A lng N/A N/A location N/A latitude longitude N/A N/A exactly_one N/A N/A N/A parse_place N/A places N/A 0 N/A N/A N/A N/A parse_place place N/A place places N/A N/A check_status N/A N/A status N/A N/A N/A Validates error statuses. N/A N/A status ZERO_RESULTS N/A N/A N/A GQueryError The geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location. N/A N/A N/A status OVER_QUERY_LIMIT N/A N/A N/A GTooManyQueriesError The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time. N/A N/A N/A status REQUEST_DENIED N/A N/A N/A GQueryError Your request was denied, probably because of lack of a sensor parameter. N/A N/A N/A status INVALID_REQUEST N/A N/A N/A GQueryError Probably missing address or latlng. N/A N/A N/A GeocoderResultError Unkown error. N/A GQueryError N/A GeocoderResultError N/A N/A Generic Google query error. N/A N/A GTooManyQueriesError N/A GeocoderResultError N/A N/A Raised when the query rate limit is hit. N/A N/A