Class: OSM

bu.geocoding. OSM

A OSM Nominatim geocoding provider. http://wiki.openstreetmap.org/wiki/Nominatim


new OSM( [opt_options])

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

Options.

Source:
bu/geocoding/osm.js

Extends

Methods


formatAddress(address)

Formats a geocoding address in HTML.

Parameters:
Name Type Description
address bu.geocoding.Address

Geocoding address.

Inherited From:
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.

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

getProviderType()

Returns the provider type.

Inherited From:
Overrides:
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.

Inherited From:
Overrides:
Source:
bu/geocoding/provider.js

updateLanguage()

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

Inherited From:
Source:
bu/geocoding/provider.js