¡@

Home 

2014/10/15 ¤U¤È 10:12:23

iphone Programming Glossary: origin.longitude

Using lattitude and longitude of the current location and destination location , how can we get the direction in iphone

http://stackoverflow.com/questions/4632966/using-lattitude-and-longitude-of-the-current-location-and-destination-location

consider the distance both east and west handle crossing the meridian and choose the shorter distance. distance_east origin.longitude 0 destination.longitude 0 180 origin.longitude destination.longitude 180 destination.longitude origin.longitude if distance_east.. crossing the meridian and choose the shorter distance. distance_east origin.longitude 0 destination.longitude 0 180 origin.longitude destination.longitude 180 destination.longitude origin.longitude if distance_east 0 distance_east 360 distance_west origin.longitude.. origin.longitude 0 destination.longitude 0 180 origin.longitude destination.longitude 180 destination.longitude origin.longitude if distance_east 0 distance_east 360 distance_west origin.longitude 0 destination.longitude 0 180 origin.longitude 180 destination.longitude..