I'm trying to get the name of a location from given latitude and longitude. Is there any possibility to get it like
getNameOfLocation(longitude,latitude)?
For example getNameOfLocation(48.1471904942317, 11.591434478759765) --> results Munich
I don't want to use any graphical elements to show like Google Maps.
Any ideas? Thanks for help
var geo = Ext.create('Ext.util.Geolocation', {
autoUpdate: false,
listeners: {
locationupdate: function(geo) {
alert('New latitude: ' + geo.getLatitude());
},
locationerror: function(geo, bTimeout, bPermissionDenied, bLocationUnavailable, message) {
if(bTimeout){
alert('Timeout occurred.');
} else {
alert('Error occurred.');
}
}
}
});
geo.updateLocation();