Questions tagged [haversine]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
225 views

Difference between haversine formula & geodesic distance for calculating distance

Background I have Vehicle driving data which includes Lat/Long points of a particular route. I drive in that route for 2 times. The driving data in that route is around 20 minutes. (Approximately ...
1
vote
2answers
52 views

Calculating haversine versus checking latitude and longitude digits after decimal point?

If I want to tell whether 2 points are close to each other, say at proximity of 50 meters, is it OK to compare both numbers up to a certain decimal point, for example the two points: 36.391155, -56....
5
votes
1answer
333 views

What kind of margin of error can I expect in figuring distance?

I have reviewed Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points? and that does not equate to the specific question that I wish to ...
-1
votes
1answer
301 views

st_distance returns different answer than haversine formula

I have two coordinates stored as geometry in a table. They are stored in column named latlng. Now the coordinates are: 1 31.54696470032501, 74.3782182429078 2 31.548894670525055, 74.37833017871426 ...
1
vote
1answer
128 views

Calculating relative position between geocoordinates and distances

I am working on a Unity application and am using the Haversine formula to calculate the distance between two points. I know the overall distance + the distance along the latitude and longitude ...
2
votes
1answer
50 views

Retrieving Lat and Long positions for pixels in a neighborhood in Google Earth Engine

I need to calculate distances between two different pairs of pixels in a neighborhood. There are two solutions. The first is to reproject the image to a plane squared grid (Albers Equal Area or UTM, ...
5
votes
1answer
170 views

Why is the length of one degree in Turf 0.9988?

Calculating the (spherical) distance along one degree of longitude at the equator in Turf returns a number less than 1 (Try it): require('@turf/turf').distance([0,0], [1, 0], { units: 'degrees' }) 0....
0
votes
1answer
103 views

Compute difference in lon / lat when moving at angle

I have the following problem: I have been given an origin as a lon / lat pair, a distance in kilometers and an angle on the ground, relative to the cardinal directions. My goal is to compute the ...
0
votes
1answer
410 views

Calculate velocity x and y components from Lat,Lon and Time

I'm trying to calculate velocity components in the X and Y direction given two points: P0 = (Lat0,Lon0,Time0) and P1 = (Lat1,Lon1,Time1) The points are pretty close together so the components ...
2
votes
1answer
513 views

How to Specify Haversine when using Buffer Method in Shapely and how to get Haversine distance between two Shapely Point objects?

I have a series of latitude/longitude pairs and I form Point() objects for each pair. I would like to form buffer regions around each point using a Haversine distance argument instead of Euclidean ...
1
vote
1answer
1k views

Vincenty's formulae to calculate in MySQL and PHP

I was reading Haversine formula on wikipedia and at the end of article its state that "More accurate methods that consider the Earth's ellipticity are given by Vincenty's formula and the other ...
30
votes
3answers
12k views

What is approximate error of Pythagorean Theorem vs. Haversine Formula in measuring distances on sphere at various scales?

Many people when first trying to calculate distances between two longitude / latitude pairs ask if Pythagorean theorem works as an appropriate distance function. Most often people answer "no, the ...
46
votes
7answers
105k views

Calculating Latitude/Longitude X miles from point?

I am wanting to find a latitude and longitude point given a bearing, a distance, and a starting latitude and longitude. This appears to be the opposite of this question (Distance between lat/long ...
40
votes
3answers
37k views

Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points?

In fact, when Sinnott published the haversine formula, computational precision was limited. Nowadays, JavaScript (and most modern computers & languages) use IEEE 754 64-bit floating-...