Queries a gazetteer service for placename details. Retrieves information such as the placename’s location and its type.
| OpenSpace. | Queries a gazetteer service for placename details. |
| Constructor | |
| OpenSpace. | Create a new OpenSpace.Gazetteer instance |
| Functions | |
| getLonLat | |
| getLocations | |
| _doGazetteerQuery | |
| _getLonLatCallback | |
| _getLocationsCallback |
getLonLat: function( query, callback )
| query | {String} A placename or a partial placename with a * wildcard. |
| callback | {Function} A function to call with the result. |
{OpenSpace.MapPoint} The location of the first placename that matches this query.
getLocations: function( query, callback )
| query | {String} A placename or a partial placename with a * wildcard. |
| callback | {Function} A function to call with the results. |
{Array} An array of {OpenSpace.GazetteerEntry} containing details of the placenames that match this query.
_getLonLatCallback: function( jsonData )
| jsonData | {String} JSON data containing details of the placenames that match this query. |
{OpenSpace.MapPoint} The location of the first placename that matches this query.
_getLocationsCallback: function( jsonData )
| jsonData | {String} JSON data containing details of the placenames that match this query. |
{Array} An array of {OpenSpace.GazetteerEntry} containing details of the placenames that match this query.
getLonLat: function( query, callback )
getLocations: function( query, callback )
_doGazetteerQuery: function( query, callback )
_getLonLatCallback: function( jsonData )
_getLocationsCallback: function( jsonData )