here_location_services.apis module
This module contains base classes for accessing the Location Services RESTful APIs.
- class here_location_services.apis.Api(api_key=None, auth=None, proxies=None, country='row')[source]
Bases:
object
A base class for low-level HTTP RESTful API client for location services.
- Parameters
api_key (Optional[str]) –
auth (Optional[here_location_services.platform.auth.Auth]) –
proxies (Optional[dict]) –
country (str) –
- __init__(api_key=None, auth=None, proxies=None, country='row')[source]
- Parameters
api_key (Optional[str]) –
auth (Optional[here_location_services.platform.auth.Auth]) –
proxies (Optional[dict]) –
country (str) –
- _get_url_string()[source]
Get url string from config based on type of country.
For china url string ends with
hereapi.cn
and for rest of the countries deonoted byrow
it ishereapi.com
.- Raises
Exception – If
api_key
not found in credentials.- Return type
str
- __add_api_key_in_params(params)
Add api_key in query params dictionary.
- Returns
Dict.
- Parameters
params (Dict) –
- Return type
Dict