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 2009
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 2009

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
ViaVirtualEarth
SVG Tutorials
MapPoint

Map Visitors

 Direct Media

Travel Insurance Compare over 450 travel insurance policies (inc. annual multi-trip, single trip & winter sports)

  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
-Help with Spatial Data/Table. Sql add-in Mappoint
-Matching by Zip Code
-Another Big Imagery Release for Bing Maps
-BingMapsDev: @csharpzealot and the 2.3GB download begins ;)
-BingMapsDev: Great new book in French on Bing Maps from @NicolasBoonaert http://bit.ly/ba72nc
-bingmaps: MapDotNet's entry to Azure US State and Local Government Application Development Contest with Bing Maps: http://miami311.cloudapp.net/
-Ability to change color of state lines?
-bingmaps: @chrispendleton on stage right now at TechDays in Paris. Presenting #BingMaps
-route directions????
-bingmaps: Interested in the rare trees of London? View them in this #BingMaps collection http://bit.ly/chOLp9
-MapPoint in Desktop Applications
-Varying travelling time by "time of day"
-Link using parameter query in Access, still no?
-Can I see a list of all pushpins?
-Assigning pushpins as territories
-Displaying info in the directions for a route
-Drive time polygons - help needed
-2002 Loading Help
-bingmaps: Webcast 10th Feb: #BingMaps ? Getting Started for Developers. Presented by @johanneskebeck http://bit.ly/8XhzCC
-bingmaps: Vancouver applications feature #BingMaps, just in time for the winter Olympics http://bit.ly/b0FoRj
-Vancouver Applications Feature Bing Maps
-Distance between locations
-bingmaps: Arlington, Virginia is using Bing Maps to help drive economic development. Check it out: http://bit.ly/1JCqpi
-bingmaps: Check out this cool video of US Navy (ONR) using Bing Maps for mobile command & control: http://bit.ly/3Jo2MX
-bingmaps: US Navy testing mobile command & control solution using Bing Maps & Windows Mobile phones. Case study: http://bit.ly/XEuF9
 Resources
Browse GIS books and periodicals
Best Car Contract Hire Lease Save
Find a MapPoint Partner or Consultant
Real Estate Columbia Homes for Sale by Owner


Want Your Site To Appear Here?

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

• Replacement Cordless Phone Batteries from DSMiller
Improve your career with a computer degree LocalEDU.com
• Tim Cohn's Marketing Strategy Consultancy
• Buy Toner Cartridges at Marquee Office Solutions
• Looking for Dry Erase Boards? See Dry Erase Boards • The Search Starts Here Used Cars
• 5339 - We Know Bikes: Road Bikes / Triathlon Bikes / Mountain Bikes / BMX Bikes
• Buy Your Car Used Cars UK, Car Lease and Contract Hire