Google's geocoder is really the only one that returns any useful information
(ve always returns 1, and yahoo doesn't return it at all).
}
var results = [];
r.Placemark.each(function(entry) {
- var ll = {lon: entry.Point.coordinates[0], lat: entry.Point.coordinates[1]};
+ var ll = {lon: entry.Point.coordinates[0], lat: entry.Point.coordinates[1], precision: entry.AddressDetails.Accuracy };
results.push(ll);
});
this._userCallback(results);
this.map.zoomToMaxExtent();
},
+ getZoom: function()
+ {
+ return this.map.getZoom();
+ },
+
display: function(n)
{
if (Object.isUndefined(this.map)) {
var results = [];
if (p) {
p.each(function(entry) {
- results.push({ lon: entry.LatLong.Longitude, lat: entry.LatLong.Latitude, precision: entry.Precision });
+ results.push({ lon: entry.LatLong.Longitude, lat: entry.LatLong.Latitude, precision: 1 });
});
this._completeCallback(results);
}
_callback: function(p)
{
if (p.success) {
- var results = [ { lon: p.GeoPoint.Lon, lat: p.GeoPoint.Lat, address: p.Address}];
+ var results = [ { lon: p.GeoPoint.Lon, lat: p.GeoPoint.Lat, address: p.Address, precision: 1}];
}
this._completeCallback(results);