Module Expr Str Import alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str FunctionDef arguments args defaults body Expr Str Assign NameStore NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Num attr Assign NameStore NameLoad Break handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse Assign NameStore DictComp NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr If CompareIs NameLoad SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str CompareIn SubscriptLoad NameLoad Index Str TupleLoad Str Str Str Str Str Str Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return BinOpMult Call NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Call AttributeLoad Str attr NameLoad NameLoad Str If CompareNotEq AttributeLoad NameLoad attr Num body Return Num TryExcept body Return Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str Index Num Index Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return Num decorator_list
N/A N/A 
Module with location helpers.

detect_location_info and elevation are mocked by default during tests.
 N/A collections N/A requests vincenty vincenty N/A ELEVATION_URL http://maps.googleapis.com/maps/api/elevation/json N/A LocationInfo N/A N/A collections namedtuple LocationInfo N/A ip country_code country_name region_code region_name city zip_code time_zone latitude longitude use_fahrenheit N/A DATA_SOURCE N/A https://freegeoip.io/json/ http://ip-api.com/json detect_location_info N/A N/A N/A N/A N/A Detect location information. N/A success None N/A source DATA_SOURCE N/A N/A N/A N/A raw_info N/A N/A N/A N/A requests get source timeout 5 json N/A success source N/A N/A N/A N/A N/A N/A requests RequestException ValueError N/A N/A success False N/A N/A success False N/A N/A None N/A N/A data N/A key N/A N/A raw_info get key N/A key N/A LocationInfo _fields N/A N/A success N/A DATA_SOURCE N/A 1 N/A N/A N/A data N/A ip N/A N/A raw_info get query N/A N/A data N/A country_code N/A N/A raw_info get countryCode N/A N/A data N/A country_name N/A N/A raw_info get country N/A N/A data N/A region_code N/A N/A raw_info get region N/A N/A data N/A region_name N/A N/A raw_info get regionName N/A N/A data N/A zip_code N/A N/A raw_info get zip N/A N/A data N/A time_zone N/A N/A raw_info get timezone N/A N/A data N/A latitude N/A N/A raw_info get lat N/A N/A data N/A longitude N/A N/A raw_info get lon N/A N/A data N/A use_fahrenheit N/A N/A data N/A country_code N/A BS BZ KY PW US AS VI N/A N/A LocationInfo data N/A distance N/A N/A lat1 lon1 lat2 lon2 N/A N/A N/A Calculate the distance in meters between two points. N/A N/A N/A vincenty N/A lat1 lon1 N/A lat2 lon2 1000 N/A elevation N/A N/A latitude longitude N/A N/A N/A Return elevation for given latitude and longitude. N/A req N/A N/A requests get ELEVATION_URL params N/A locations sensor N/A N/A {},{} format latitude longitude false N/A N/A N/A req status_code 200 N/A N/A 0 N/A N/A N/A N/A int N/A float N/A N/A N/A N/A N/A req json N/A results N/A 0 N/A elevation N/A N/A N/A N/A ValueError KeyError N/A N/A 0 N/A