MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




How to get latitude and longitude

This is a discussion on How to get latitude and longitude within the MapPoint Desktop 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 Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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-27-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
Location: Belgium
Posts: 2,318
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 Desktop Discussion 1 03-21-2005 01:01 PM
longitude and latitude lookup Anonymous MapPoint Desktop Discussion 3 01-24-2004 09:20 AM
longitude and latitude lookup Anonymous MapPoint Desktop Discussion 0 01-23-2004 03:58 PM
Latitude and Longitude Anonymous MapPoint Desktop Discussion 1 11-25-2003 12:52 PM
NMEA latitude/longitude and mappoint latitude/longitude muurman MapPoint Desktop Discussion 3 11-22-2003 04:42 AM


All times are GMT -5. The time now is 10:06 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
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 55 56 57 58 59 60 61 62 63 64 65 66 67