Map Point in VB6

matrixxx1
01-08-2007, 04:11 PM
Hey all, first off I would like to appologize if this is in the wrong section, I looked over the forum, and could not find a better place.

I am a long time VB6 user (ASP,HTML,SQL,JS,VBS,TCL also known) but only recently started with integrating MapPoint.

Ulitimatly, my goal is as follows. A .dll I install on my server, which I can reference in order to provide door to door directions, that include certain waypoints for people to check out (upgrading my trip planner on www.strangeusa.com (http://www.strangeusa.com) which currently uses google maps, and only partially works - just lists off locations to check out along your path).



So back to my question:
I have figured out how to add pin points on the maps (using ocx in vb6), but for the life me I cant figure out how to create or extract the directions from MapPoint. Could some one please post some sample source code that does the following.

-Get a few address's
-plot them on the map
-get 'break points' every 30 miles or so
-get directions
-output results to a textbox or listbox

I would be happy to trade code/ databases as a thank you for your efforts.



please contact me through asdfmont@hotmail.com

Mattys Consulting
01-08-2007, 10:14 PM
Calculating and posting directions?
Does Microsoft's EULA for MapPoint allow this? Anyone?
I just read it for 2006 and I can't tell; it just advises not to expect accuracy.

Paul Larson
01-08-2007, 11:46 PM
The only definitive answer on this type of license usage would come from contacting mailto://maplic@microsoft.com

I know a couple clients who have requested this usage and were approved almost immediately by MS. Just so long as they don't publish map images, POI data, etc. Information on calculated route distances and calculated directions seems to be okay with MS.

That being said, your "interesting waypoints" would have to be public domain or self-input. Other than that, you should be able to get approval.

I'd be happy to share some VB6 COM code with you to get you started.

You might also want to check out the MapQuest API and Virtual Earth API, since these are well-suited to your task and absolutely available for this usage.

-Paul
"p larson pma (AT) hotmail (DOT) com"

 
Web mp2kmag.com
mapforums.com