Class: Provider

bu.geocoding. Provider

The base class for all geocoding providers.


new Provider( [opt_options])

Parameters:
Name Type Argument Description
opt_options bu.geocoding.ProviderOptions <optional>

Options.

Source:
bu/geocoding/provider.js

Extends

  • ol.Object

Methods


formatAddress(address)

Formats a geocoding address in HTML.

Parameters:
Name Type Description
address bu.geocoding.Address

Geocoding address.

Source:
bu/geocoding/provider.js
Returns:
Type
string

formatLocation(lonlat, projected, projection)

Formats a geocoding location in HTML.

Parameters:
Name Type Description
lonlat bu.Coordinate

Geocoding location in EPSG:4326.

projected bu.Coordinate

Geocoding location in viewer projection.

projection string

Name or code for viewer projection.

Source:
bu/geocoding/provider.js
Returns:
Type
string

<abstract> getProviderType()

Returns the provider type.

Source:
bu/geocoding/provider.js
Returns:
Type
bu.geocoding.ProviderType

Execute a request to the provider service service.

Parameters:
Name Type Description
query string

The query string.

load function

Function to execute if response is loaded.

error function

Function to execute if response has an error.

Source:
bu/geocoding/provider.js

updateLanguage()

Updates the geocoding provider for the current language in the bu.Globalization singleton.

Source:
bu/geocoding/provider.js