I want to display Latitude and Longitude on my page like we search in google map,for example if i enter Comfort Inn Sunset then it show the Latitude and Longitude in textbox.
so please help me as soon as possible.
You can do it manually on sites like:
or
http://stuff.mit.edu/geo?location=New+york%2Cnew+york
Please refer the link below.
geocoder.geocode({ 'address': addresscity }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
latitude = results[0].geometry.location.lat();
longitude = results[0].geometry.location.lng();
document.getElementById("lat").value= latitude;
document.getElementById("lon").value= longitude;
var myLatlng = new google.maps.LatLng(latitude, longitude);
var mapOptions = {
center: new google.maps.LatLng(latitude, longitude),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
});