About 6,120,000 results
Open links in new tab
  1. I want to calculate the distance between two points in Java

    Jan 21, 2013 · I have no problems whatsoever with my program aside from one issue: the program won't accept the code I've written for the distance between the two center points. I can figure out the if/else …

  2. Calculate distance between two latitude-longitude points? (Haversine ...

    Aug 26, 2008 · How do I calculate the distance between two points specified by latitude and longitude? For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to …

  3. Getting distance between two points based on latitude/longitude

    Oct 17, 2013 · I tried implementing the formula in Finding distances based on Latitude and Longitude. The applet does good for the two points I am testing: Yet my code is not working. from math import …

  4. Calculate distance between 2 GPS coordinates - Stack Overflow

    How do I calculate distance between two GPS coordinates (using latitude and longitude)?

  5. c# - Calculating Distance between two Latitude and Longitude ...

    Jun 16, 2011 · I'm calculating the distance between two GeoCoordinates. I'm testing my app against 3-4 other apps. When I'm calculating distance, I tend to get an average of 3.3 miles for my calculation …

  6. Shortest distance between a point and a line segment

    I need a basic function to find the shortest distance between a point and a line segment. Feel free to write the solution in any language you want; I can translate it into what I'm using (Javascri...

  7. How can the Euclidean distance be calculated with NumPy?

    Sep 10, 2009 · Since the distance from a point to itself is 0, the diagonals of this matrix will be all zero. The same task can be performed with numpy-only methods using broadcasting.

  8. Calculating distance between two points (Latitude, Longitude)

    Oct 23, 2012 · I am trying to calculate the distance between two positions on a map. I have stored in my data: Longitude, Latitude, X POS, Y POS. I have been previously using the below snippet. …

  9. How to calculate distance from Wifi router using Signal Strength?

    To calculate the distance you need signal strength and frequency of the signal. Here is the java code: public double calculateDistance(double signalLevelInDb, double freqInMHz) { double exp = (27.55 - …

  10. Distance between point and a line (from two points)

    However, when I compared the distance using np.cross and the formula you posted, there was a difference in results (very slightly). Since I was working with moderately large dataset, I summed the …