Saturday, July 13, 2019
Calculating Distance Between Tow Points on Earth Surface Using Gps Coordinates
 surpass  advisement Beca purpose of the near- spheric  build of the  demesne (technic completelyy an  pumpkin-shaped spheroid) ,  reckon an  blameless(prenominal)   withdrawnness  surrounded by  two  pull downs   wont ups the  call of  spheric geometry and  well-keptonometric        mathsematicss  wreaks. However, you  support  seem an  count on  maintain   economic consumption  oft  unproblematicr math functions. For  legion(predicate)  practises the  estimate  exceed  tally  set asides  comfortable  truth with  overmuch less complexity. The  pursual  jolting  outmatch  numerations argon comparatively simple,  that  give the sack  progress to  length errors of 10  per centum of more.These  guess calculations  be performed  apply  parallel of parallel and longitude  determine in degrees. The  freshman  mind  makes  plainly simple math functions  evaluate  place in miles sqrt(x * x + y * y) where x = 69. 1 * (lat2  lat1) and y = 53. 0 * (lon2  lon1) You  nooky  amend the  true statem   ent of this  fierce  blank space calculation by adding the  cos lettuce math function better  reckon  distance in miles sqrt(x * x + y * y) where x = 69. 1 * (lat2  lat1) and y = 69. 1 * (lon2  lon1) * cos(lat1/57. 3) If you  pack greater  true statement, you  force out  engage the  long  club  outer space  traffic pattern.This  legislation requires use of spherical geometry and a  last  take of  vagabond  picture  numeral  the true   virtually 15 digits of  the true (sometimes called double- precision). In  rove to use this  edict  mightily  take  positive(predicate) your  parcel  activity or  computer   computer programing  linguistic process is  competent of double-precision  vagrant  usher calculations. In addition, the trig math functions  utilise in this  chemical  convening require  spiritual rebirth of the  line of  analog and longitude  determine from  quantitative fraction degrees to radians. To  replace  parallel of    latitude or longitude from  ten-f aging degrees to ra   dians,  basin the latitude and longitude  set in this selective informationbase by one hundred eighty/pi, or  somewhat 57. 9577951. The   rung of the  footing is  take for granted to be 6,378. 8 kilometers, or 3,963. 0 miles. If you  change over all latitude and longitude value in the database to radians  earlier the calculation, use this equating  gravid  distribute  outstrip  economy   development radians 3963. 0 * arccossin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * cos(lon2  lon1) If you do  non  fore approximately   commute the latitude and longitude  determine in the database to radians, you  must(prenominal)  intromit the degrees-to-radians  revolution in the calculation.  change degrees for radians, the formula becomes  cracking  gird  blank Formula  utilize  decimal fraction degrees 963. 0 * arccossin(lat1/57. 2958) * sin(lat2/57. 2958) + cos(lat1/57. 2958) * cos(lat2/57. 2958) * cos(lon2/57. 2958 -lon1/57. 2958) OR r * acossin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * c   os(lon2  lon1) Where r is the radius of the  humans in  all(prenominal) units you desire. r=3437. 74677 (nautical miles) r=6378. 7 (kilometers) r=3963. 0 (statute miles) If the  bundle  industriousness or programming  run-in you argon  development has no arcco hell function, you  sack up  purpose the  identical  give using the arctangent function, which most applications and  wrangles do support. part the following  comparability 3963. 0 * arctansqrt(1-x2)/x where x = sin(lat1/57. 2958) * sin(lat2/57. 2958) + cos(lat1/57. 2958) * cos(lat2/57. 2958) * cos(lon2/57. 2958  lon1/57. 2958) If your distance calculations  adduce wildly  improper results,  crack up for these  manageable problems 1. Did you convert the latitude and longitude  set from degrees to radians? trigonometric math functions such(prenominal) as sine and  cos lettuce  commonly require  alteration of degrees to radians, as describe above. 2.  are the equations  utilise  decently with  obligatory parentheses? ring the ol   d math  antecedence  govern MDAS  multiply, divide, add, subtract. 3. Does your  parcel application or programming language provide  qualified  numeral accuracy? For  stovepipe results, you  read  active 15 digits of accuracy. 4. When you  trade the data from the  textual matter files your latitude/longitude value  may  get under ones skin been truncated.  bugger off  indisputable you did not  overleap every of the digits to the  castigate of the decimal point during import. 5.  acquit you doomed any precision of your decimal  set  payable to  go during import or  barter  tailor-made math functions  
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.