php - How do I calculate and get the next latitude-longitude estimated by time between two points every 10 minutes having the start and end point? -
I need help I have the following 2 points on the map point: lat1 / long1 and dot b lat2 / long2 Google map I have distance, arrival_It is powerful and speed.
How can I get the approximate latitude longitude (Google Map Format) at the next point in 10 minutes, 20, 30 and 40 minutes with these figures? Start and end point
Point A lat1 = 37.78472 lon1 = -122.39913
Point B lat2 = 37.78240 lon2 = -121.23208
Operadins = 270
Distance = 102 km
On arrival = 50 minutes
speed = 122 km / H
Example:
Do I need to calculate the Nexus digits, I am going to use PHP, or where should I start
Thanks
There are several ways to calculate this, some of them are quite complex.
You can use, which is often used for impact and distance calculation. Formula requires long / latete of the starting point, effect and distance. I suspect that if you want to re-execute this stranger, then you can go here:
To use another solution vectors, it may be that the destination points have a great circle Calculating with distance and effect from the starting point. This approach can be a little easier, then to work with spherical trigonometry. And
Each other has to calculate the intermediate points on a great circle.
Use Vincent here and if given a starting point, effect and distance, your Re-fill the end point:
- A starting point: point A
lat1 = 37.78,472 ;
lon1 = -122.39913 ;
- Effect:
About 89
- Distance:
102 km
Result: Latitude :
37 ° 47â²²42â ?? ³N
37.79506902 , Longitude:
121 ° 14â ?? ²28â ?? ³W
-121.24119021
This is now close your point B.
Now, you want to determine the future condition (lung / lat) by calculating the distance based on your current speed and your known time interval. In other words, your next point starts from 122 km / h and 89 hours at the speed starting at a speed of 10 minutes.
Calculate the new distance:
122 km / hour = 2033.33m / min , then in 10 minutes:
20333.33m = 20,333 km approx.
New data for the formula:
- A starting point, here: point A
lat1 = 37.78472 ;
lon1 = -122.39913 ;
- Effect:
About 89
- Distance:
20,333 km
and late / To get the longest, revive Vincenty with these values.
- Effect:
- Effect:
Comments
Post a Comment