here_location_services.responses module

This module contains classes for accessing the responses from Location Services RESTful APIs.

class here_location_services.responses.ApiResponse(**kwargs)[source]

Bases: object

Base class for all the responses from Location Services RESTful APIs.

__init__(**kwargs)[source]
__str__()[source]

Return str(self).

as_json_string(encoding='utf8')[source]

Return API response as json string.

Parameters

encoding (str) –

to_geojson()[source]

Return API response as GeoJSON.

classmethod new(resp)[source]

Instantiate a response object from raw response returned by API.

class here_location_services.responses.GeocoderResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Geocoder API response data.

__init__(**kwargs)[source]
class here_location_services.responses.ReverseGeocoderResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Reverse Geocoder API response data.

__init__(**kwargs)[source]
class here_location_services.responses.IsolineResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Reverse Isoline routing API response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.

class here_location_services.responses.DiscoverResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the search discover API response data.

__init__(**kwargs)[source]
class here_location_services.responses.BrowseResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the search browse API response data.

__init__(**kwargs)[source]
class here_location_services.responses.LookupResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the search lookup API response data.

__init__(**kwargs)[source]
class here_location_services.responses.RoutingResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the search routing API response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.

class here_location_services.responses.MatrixRoutingResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing Matrix routing response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.

to_distnaces_matrix()[source]

Return distnaces matrix in a dataframe.

to_travel_times_matrix()[source]

Return travel times matrix in a dataframe.

class here_location_services.responses.AutosuggestResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Autosuggest API response data.

__init__(**kwargs)[source]
class here_location_services.responses.DestinationWeatherResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Destination Weather API response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.

class here_location_services.responses.WeatherAlertsResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Destination Weather API response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.

class here_location_services.responses.TourPlanningResponse(**kwargs)[source]

Bases: here_location_services.responses.ApiResponse

A class representing the Tour Planning API response data.

__init__(**kwargs)[source]
to_geojson()[source]

Return API response as GeoJSON.