get_lat_lon¶
-
support.weather.
get_lat_lon
(address, **kwargs)¶ Format response object from _make_geocoding_api_request.
Examples:
>>> from support.weather import get_lat_lon >>> res = get_lat_lon("New York City") >>> print(res["lat"], res["lon"]) 40.7127753 -74.0059728
- Parameters
address (str) – passed to _make_geocoding_api_request
**kwargs – passed to _make_geocoding_api_request
- Returns
Dictionary with the following keys/values: * lat: Latitude in degrees * lon: Longitude in degrees
- Return type
dict