Queries the postcode service for the postcode’s position.
| OpenSpace. | Queries the postcode service for the postcode’s position. |
| Constructor | |
| OpenSpace. | Create a new OpenSpace.Postcode instance |
| Functions | |
| getLonLat | |
| _doPostcodeQuery | |
| _getLonLatCallback |
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.
_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.
getLonLat: function( query, callback )
_doPostcodeQuery: function( query, callback )
_getLonLatCallback: function( jsonData )