I am using geolocation to get the users current location and monitor it using the watchPosition method. However, is there a way of calculating the distance between the users starting position and current position? Below is my code:  var x = document....
I have already been facing issues in meteor when dealing with reactive sorting of a publication according to various data. Every time, I never found a real answer to what I was trying to achieve and I ended up giving up and just deciding "not to...
I want to convert meters to miles in JavaScript.  For example 12700 meters is 7.8867 miles.  What formula can I use to do the conversion?...
My programming knowledge is very limited and I'm working on a college project that includes programming.   What I want to do is a map, that shows your current location and the locations of recycling points. I already did the current location part...
Hi I am playing with html5 geolocation and have used the  navigator.geolocation.getCurrentPosition(success, fail) object to get the users position.   In the success function I then created a variable called coords to hold the coordinates and a variab...
I'm having the difficulties with calculating distance between several points on the map:  I have an array of coordinats where the first coord ["30.327547", "59.919676"] is the begining of the trip and other are pit stops:  var J =...
How can I get the list of e.g 3 nearest metro stations from specified point and the distance from the point to station?...
I have a line segment (great circle part) on earth. The line segment is defined by the coordinates of its ends. Obviously, two points define two line segments, so assume I am interested in the shorter one.   I am given a third point, and I am looking...
I have read some issues with calculate distance on google maps API but still not working for me. Here is my code:  function initMap() {    var loc1 = new google.maps.LatLng(37.772323, -122.214897);    var loc2 = new google.maps.LatLng(34.1633766,-81....
I am using the Google Maps API in my application (ASP.NET with MVC).  I have an array of coordinates (each consisting of latitude and longitude), let us call it "origin" (this can be a polygon, polyline or marker) and another array of coordin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.