MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to get latitude and longitude

This is a discussion on How to get latitude and longitude within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, (1) If I have a location, is there a way to get latitude and longitude? (2) How to implement ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 5
How to get latitude and longitude

Hi,

(1) If I have a location, is there a way to get latitude and longitude?
(2) How to implement "Location Sensor" in MapPoint 2004, which shows Latitude/Longitude in a small box?

Thanks for help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-26-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 1
Me too.

I need to do the same thing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-28-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
Lat Long

For estimation of Lat Long

Quote:
Gilles Kohl's "CalcPos" routine is what you need. It can be found in the following article:

http://www.mp2kmag.com/a13--kohl.ext....mappoint.html

It uses the measure distance functionality and a bit of geometry to calculate a location's coordinates.


Richard
_________________
Winwaed Software Technology
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
As for the show Location Sensor - if you mean the one built into MapPoint I dont think there currently is a method to ShowLocationSensor in the programming language.

Ciao,
__________________
Calv1ns
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-28-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

For the location sensor here is a code snipped from MouseMove event:

Code:
        private void MP_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
        {
            AxMapPoint.AxMappointControl mp = (AxMapPoint.AxMappointControl)sender;
            Location Loc = mp.ActiveMap.XYToLocation(e.x, e.y);
            if (Loc != null) {
                double Lat;
                double Lon;
                pos.CalcPos(Loc, out Lat, out Lon);
                statusStripLat.Text = Lat.ToString("F4");   // is 11 meter nauwkeurigheid
                statusStripLon.Text = Lon.ToString("F4");
            }
        }
The pos.CalcPos is same routine as Gilles Kohl's one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
latitude, longitude


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Latitude and Longitude virgilar MapPoint 2006/2009 Discussion 1 03-21-2005 02:01 PM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 3 01-24-2004 10:20 AM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 0 01-23-2004 04:58 PM
Latitude and Longitude Anonymous MapPoint 2006/2009 Discussion 1 11-25-2003 01:52 PM
NMEA latitude/longitude and mappoint latitude/longitude muurman MapPoint 2006/2009 Discussion 3 11-22-2003 05:42 AM


All times are GMT -5. The time now is 07:17 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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