Topic
1 reply Latest Post - ‏2012-12-29T06:59:26Z by SystemAdmin
venkatakrishnarao
venkatakrishnarao
10 Posts
ACCEPTED ANSWER

Pinned topic Getting lat and long positions using address

‏2012-10-15T14:27:41Z |
Hi all,

I am trying to retrieve latitude and longitude values for a given address location using java script. I tried it by some website in javascript like,

var address = document.getElementById("address").value;
var geocoder = new google.maps.Geocoder();

geocoder.geocode( { 'address': address}, function(results, status) {
var location = results[0].geometry.location;
alert(location.lat() + location.lng());
});
but i am not getting the alert box in page.

Any suggetions..

ThanX in advance
Updated on 2012-12-29T06:59:26Z at 2012-12-29T06:59:26Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    106 Posts
    ACCEPTED ANSWER

    Try this out and get an idea

    ‏2012-12-29T06:59:26Z  in response to venkatakrishnarao
    hi mate you can get latitude and longitude by entering the ip address in Link: http://www.ip-details.com/
    I am not familiar with java script but you can use the code(available by clicking GET IP DETAILS FREE tab on the top to get codes to display the app on your web browser) as a case study/guide,to develop/upgrade your code.