OpenSpace. Gazetteer

Queries a gazetteer service for placename details.  Retrieves information such as the placename’s location and its type.

Summary
Queries a gazetteer service for placename details.
Create a new OpenSpace.Gazetteer instance

Constructor

OpenSpace. Gazetteer

Create a new OpenSpace.Gazetteer instance

Parameters

Returns

An instance of OpenSpace.Gazetteer

Functions

getLonLat

getLonLat: function(query,
callback)

Parameters

query{String} A placename or a partial placename with a * wildcard.
callback{Function} A function to call with the result.

Returns

{OpenSpace.MapPoint} The location of the first placename that matches this query.

getLocations

getLocations: function(query,
callback)

Parameters

query{String} A placename or a partial placename with a * wildcard.
callback{Function} A function to call with the results.

Returns

{Array} An array of {OpenSpace.GazetteerEntry} containing details of the placenames that match this query.

getLonLat: function(query,
callback)
getLocations: function(query,
callback)
This class represents an eastings and northings pair of coordinates in British National Grid (BNG) format
Holds placename details.