Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

MapPoint 2006 coordinates

This is a discussion on MapPoint 2006 coordinates within the MapPoint Desktop Discussion forums, part of the Map Forums category; Does someone know how can i get from a certain Geographical Coordination eg. (40,8345723990351N 14,2560187820345E), the coordinates that is at ...

  1. #1
    Paraffin is offline Junior Member White Belt
    Join Date
    Jul 2007
    Posts
    1

    Cool MapPoint 2006 coordinates

    Does someone know how can i get from a certain Geographical Coordination eg. (40,8345723990351N 14,2560187820345E), the coordinates that is
    at X distance and ALFA angle form the previous point in MapPoint 2006?

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: MapPoint 2006 coordinates

    Hi,

    this give you the distance between the points and the angle between the two:

    Code:
    u_16 get_dist(double lat1, double lon1, double lat2, double lon2, u_32* km)
    {
    	double lat  = lat2 - lat1;
    	double lon  = (lon2 - lon1) * cos(deg2rad((lat1 + lat2) / 2));
    	double dist = hypot(lat, lon);
    	double heading = rad2deg(acos(lat / dist));
    	
    	*km = (u_32)(dist * 60 * 1.852);
    	
    	if (lon < 0)	// Western direction
    		heading = 360 - heading;
    	return heading;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Difference between MapPoint 2006 and MapPoint 2006 Fleet
    By jlewis in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-21-2006, 09:18 AM
  2. Getting a MapPoint.Location from a set of coordinates
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-20-2005, 04:19 PM
  3. Extracting GPS coordinates from MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-28-2005, 01:44 AM
  4. newbie wants help in getting mappoint to return coordinates
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-02-2003, 03:36 PM
  5. getting the coordinates of puspins within MapPoint
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-06-2003, 11:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96