var from_Lati = 19.132324234 // from latitude var from_longi = 19.11233334 // from longitude
and I have TO latitude and Longitude in Array as
var To_Lati = [18.132323,18.90941,18.31232423] // to latitude in array var To_Longi = [18.2132123,18.242423,18.43243] // to longitude in array
I have gone through many reference on internet but can't find the solution for calculating the distance with respect to array.. Now I want to find the distance between them using JavaScript...
I want to caclate Latitude and Longitude from address in asp.net. I have written the necessary code ,but could not get the desired result
I have put an alert and tested it.Its working fine until geocoder.geocode()function is called.Alert put inside the function is not working.It seems there is some issue with function.
This is my javascript function
function calculateCoordinates() { var txtAddress1 = document.getElementById('<%= txtAddress1.ClientID%>'); var txtLatitude = document.getElementById('<%= txtLat.ClientID%'); var txtLongitude = document.getElementById('<%= txtLong.ClientID%>'); var address = txtAddress1.value;
I am working on a ASP.Net project(c#). I have SQL Server Database linked with it. The project has the list of client present in the city. A page will show the list of client on a datagrid . Clicking on a client will redirect to another page which show the details of that client. I want to display Google map picture or Google street picture of that client along with the details on that client details page through Longitude and latitude. Each client details will be fetched from the database to show on that page and every client longitude and latitude value is also saved in a column in the database.
This is code for searching latitude and longitude . so how to save into database.
function GetLocation() { var geocoder = new google.maps.Geocoder(); var address = document.getElementById("txtAddress").value; geocoder.geocode({ 'address': address }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { var latitude = results[0].geometry.location.lat();
I have Postcode in my large database, which contains values like SL5 9JH, LU1 3TQ etc. Now when I am pasting above postcode to maps.google.com it's pointing to a perfect location.. My requirement is like I want to pass post codes to maps.google.com and it should return a related latitude and longitude of that pointed location, that I want to store in my database. So, most probably there should be some javascript for that If anybody have another idea regarding that please provide it
I am getting location by latitude and longitude from geolocation but location is not showing, If I pass latitude and longitude manually than its working good where is error in my code plz check my code.
I am looking for multi marker google map from sql server database, I have following code with me which is working perfectly fine but instead of fetching data from sql server it is fetching from xml. How can bind it from sql server to show multi marker.
xml data
<markers> <marker address="630 LAS GALLINAS, San Rafael CA"/> <marker address="2ND ST, Novato CA"/> <marker address="2402 SIR FRANCIS DRAKE BLVD, fairfax CA"/>
<marker address="255 CANAL ST, San Rafael CA"/> </markers>
i have to display google map with movable pushins(marker).if we will drag these on anoother location and click the submit button than new lattitude nad longitude will be save in the database and updat also....
I have wriiten the following code to avoid zoomout of the markers and to place the makers center to the map.
var bounds=new google.maps.LatLngBounds();map.fitBounds(bounds);map.setCenter(bounds.getCenter());
The above code is working correctly.But when i wrote setInterval function to drop the markers after a specific interval of time , the above piece of code is not working and the map is not getting displayed.This the code i have written
window.onload = function () { var mapOptions = { center: new google.maps.LatLng(markers[0].lat, markers[0].lng), mapTypeId: google.maps.MapTypeId.ROADMAP }; var infoWindow = new google.maps.InfoWindow();