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
  #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
Posts: 2,055
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


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 01:01 PM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 3 01-24-2004 09:20 AM
longitude and latitude lookup Anonymous MapPoint 2006/2009 Discussion 0 01-23-2004 03:58 PM
Latitude and Longitude Anonymous MapPoint 2006/2009 Discussion 1 11-25-2003 12:52 PM
NMEA latitude/longitude and mappoint latitude/longitude muurman MapPoint 2006/2009 Discussion 3 11-22-2003 04:42 AM


All times are GMT -5. The time now is 04:07 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

Zermatt Skiing
Thinking about skiing in Switzerland? Zermatt skiing is simply spectacular. Book online at Holiday Hypermarket to get a great value holiday in the shadow of the Matterhorn.

City Break Europe
Take a city break in Europe. Travel Counsellors can help plan and book your European city break.

Flights to Canada
Looking for cheap flights to Canada? dealchecker.co.uk helps you compare prices from all major scheduled and charter airlines.

All Inclusive Maldives
Visit The Holiday Place.co.uk for great deals on all inclusive holidays to the Maldives. Book a holiday to the outstandingly beautiful Maldives.

Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.

Inclusive late deals
For inclusive late deals, check out your options at Travel.co.uk and have fun!

Florida Holidays
Take a sunny holiday break! Find info on Florida holidays at On The Beach!


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