here_location_services.config.autosuggest_config module

This module defines all the configs which will be required as inputs to autosuggest API.

class here_location_services.config.autosuggest_config.SearchCircle(lat, lng, radius)[source]

Bases: object

A class to define SearchCircle

Results will be returned if they are located within the specified circular area

defined by its center and radius(in meters).

Parameters
  • lat (float) –

  • lng (float) –

  • radius (int) –

__init__(lat, lng, radius)[source]
Parameters
  • lat (float) –

  • lng (float) –

  • radius (int) –

class here_location_services.config.autosuggest_config.PoliticalView(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A Class to define constant values for political view

RUS: expressing the Russian view on Crimea

SRB: expressing the Serbian view on Kosovo, Vukovar and Sarengrad Islands

MAR: expressing the Moroccan view on Western Sahara

here_location_services.config.autosuggest_config.POLITICAL_VIEW = {'MAR': 'MAR', 'RUS': 'RUS', 'SRB': 'SRB'}

Use this config for political_view of Autosuggest API. Example: for RUS political_view use POLITICAL_VIEW.RUS.

class here_location_services.config.autosuggest_config.Show(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A Class to define constant values for showing additional fields to be rendered in the response.

phonemes: Renders phonemes for address and place names into the results.

tz: BETA: Renders result items with additional time zone information. Please note that this may impact latency significantly.

here_location_services.config.autosuggest_config.SHOW = {'phonemes': 'phonemes', 'tz': 'tz'}

Use this config for show of Autosuggest API. Example: for RUS show use SHOW.phonemes.