spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2011
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2011

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  ARTICLES  


Uploading MapPoint Locations To Your GPS

"Having found the address with MapPoint, how do you get it into your GPS? Very often I have faced this problem," writes Evert Mouw.

You can use the “location sensor” to see the WGS 84 coordinates, but then need to enter the coordinates manually in your GPS receiver. Much work, very clumsy.

However, after discovering MP2K Magazine I quickly learned how to make a COM add-in from the examples and from the MSDN website to do just that. Originally, I expected much from the location object / property. But too bad, it doesn’t reveal the WGS 84 coordinates because of copyright regulations or whatever. So when I discovered the VBA function which was able to return the WGS 84 location given a location, I was very pleased. This code (freeware) was written by Gilles Kohl. Now I am able to walk through all pushpins and waypoints and get the coordinates.

But how do I get the coordinates directly into my GPS? The MapPoint 2002 object model doesn’t support that, but the NMEA serial port protocol is not very complicated. I gathered information about the NMEA commands. Using the MS Comm Control 6.0 that is included with Visual Basic 6.0 Professional (MSCOMM32.OCX), it’s possible to send text commands over the Com port.

And then it’s very easy to walk through all waypoint and pushpin locations, calculate the WGS 84 coordinates for each location and store the information in arrays, design a simple form to show the names of the locations and their coordinates, and create a button “send to GPS”. Now I can send my waypoints from MapPoint to my GPS very fast.

The project is still in alpha phase, there are some bugs and a number of things to improve. For starters, it would be nice if the add-in would detect the COM port automatically. Also, waypoints with the same name are overwritten without warning if they already exist in the GPS. Importing waypoints or pushpins from the GPS would be nice too. And it shouldn’t mix up pushpins when deleting pushpins, and I don’t like the error message after exiting MapPoint complaining about a “pure virtual function call”. And what about memory management? Currently, I use Dim points (1 to 100). When you have > 100 pushpins, I’m sorry. If you have just three waypoints, it uses too much memory…

The source code is available for persons who are willing to improve the code. The compiled code is available for everyone to play with, but be conscious about hidden bugs Of course, this little project must remain open source so everyone can improve and benefit.

See WaypointsToGPS on my webpage to download the binary and source code and view installation instructions

Discuss this story in the forum.

Author: Evert Mouw
Email: gps(AT)evert.net
URL: http://www.evert.net
Evert is a system administrator and freelance correspondent in the Netherlands. Besides techie things, he is interested in political science and likes to make long trips and hikes in Scandinavia on his motorcycle using GPS to find the way.



Google
 
MP2Kmag Internet


 Recent Discussion
-bingmaps: RT @ChrisPendleton: In case you missed my #location2012 talk, @OrdnanceSurvey has posted a recording: http://t.co/p5dcMTpN
-Upcoming WhereCamp Berlin 2012
-MapPoint for World Maps?
-Beginner stuck-what am I doing wrong?
-Mappoint 2011 Europe -> tooltip and update possibilities
-bingmaps: FREE BING MAPS EVENTS IN GERMANY: München https://t.co/pFJZxDdE Köln https://t.co/zerD99GK #bingmaps
-bingmaps: FREE EVENT: @BingMaps and @Beyond present a vision of the London 2012 Games: The Most Connected Games Ever. https://t.co/yEJ493OR
-Need Several Radius imported into a map
-Automatic generation of Drive Time zones around PushPins
-C# Code To Load Older COM Version
-Successful MapPoint Web Service (MWS) to Bing Maps Conversion
-bingmaps: @Sonray Please direct your question to our technical forum which is monitored by our developers: http://t.co/dEfOwFBC
-bingmaps: New Bird’s Eye Imagery & Streetside Coverage on Bing Maps! http://t.co/iJPu0McQ
-I have an excel spreadsheet that has number of houses on roads, can I link this to mappoint?
-Microsoft MapPoint 2011 Construction Data Update May 4th, 2012
-Mappoint 2011 and the built in database
-Using Excel and mappoint
-Extracting ZipCode With Lat/Long
-DataLink Problem!
-bingmaps: Integrating Bing Maps With WPF:http://t.co/HzdriaMs
-Mapping Bears
-Route Segments do not add up to complete route
-plotting pie charts by sales numbers
-Importing Live Data into Mapoint
-number of houses on a road?
 Resources
Browse GIS books and periodicals
Find a MapPoint Partner or Consultant
Real Estate Columbia For Sale By Owner


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011 are either trademarks or registered trademarks of Microsoft.