Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Expert Knowledge Required - GPS Tracking

This is a discussion on Expert Knowledge Required - GPS Tracking within the MapPoint Desktop Discussion forums, part of the Map Forums category; I've been working on a gps tracking solution with mappoint for the past year now. I am getting fed up ...

  1. #1
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Expert Knowledge Required - GPS Tracking

    I've been working on a gps tracking solution with mappoint for the past year now. I am getting fed up with the lack of support I have been receiving. I search google for hours on end but can not find an answer for my problem.

    Automating MapPoint in C++ With Built In GPS Features Enabled - MapPoint Articles - MP2K Magazine

    This is essentially what I want to do, even he stated in the article:

    "Unfortunately, even after enabling the Driving Guidance by help of Paul Larson’s code, the turn by turn directions would not update. The only message given by the guidance was "Proceed to Route". This seemed odd to me because the turn by turn direction update perfectly when I would run MapPoint.exe outside of Project54."

    This is the EXACT problem I am having. He has the solution for it, but it is in C++. I am programming in C#, and am unsure if the same solution applies.

    Someone please help... I am very temped to scrap mappoint as a gps solution and start all over with something more reliable.

    Thank you,

    Matt

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Posts
    1,722
    Blog Entries
    50

    Re: Expert Knowledge Required - GPS Tracking

    Have you tried porting Paul's solution?


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Re: Expert Knowledge Required - GPS Tracking

    This is what I'd like to do. Unfortunately I do not understand c++ well enough to port it to c#. Can anyone point me in the right direction?

  4. #4
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Re: Expert Knowledge Required - GPS Tracking

    I have managed to convert the code to C#.

    However, the send messages are not doing anything.

    I am using MapPoint 2010, can anyone confirm this works with this version?

  5. #5
    cincoh is offline Junior Member White Belt
    Join Date
    Dec 2011
    Posts
    7

    Re: Expert Knowledge Required - GPS Tracking

    Have you been able to figure out the problem? I'm stuck in the same situation as you are. My application works perfectly except the turn-by-turn voice directions. It keep saying "Proceed to Route" when I drive, but nothing else. I'd really appreciate your reply.

    BTW, my application was also written in C#. I'm using the latest version of MapPoint and Framework 3.5.

    Thanks!

    Quote Originally Posted by mjfara View Post
    I have managed to convert the code to C#.

    However, the send messages are not doing anything.

    I am using MapPoint 2010, can anyone confirm this works with this version?

  6. #6
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Re: Expert Knowledge Required - GPS Tracking

    If I recall correctly, turn by turn directions were not possible when using the com object axMapPointControl.
    In my solution I had to start MapPoint separately as a process, get the handle to it, and control it that way.
    Everything worked perfectly, except I now had 2 windows open, my form and mappoint. This wasn't an issue for me as my application is running in vehicles, full screen.
    So I made a transparent panel on the form and I centered the map so it fits inside. The form is set to always on top, so it looks like it's all one program.
    Best of luck.

  7. #7
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Re: Expert Knowledge Required - GPS Tracking

    Another thing I am remembering is MapPoint will have different window handles depending on which version you are running. If you are using Paul Larson's code, it will not work because I think he used 2006 for that.
    What I did was use spy++ to get all the window handles in my version of MapPoint, and put those values into Paul's code.

  8. #8
    cincoh is offline Junior Member White Belt
    Join Date
    Dec 2011
    Posts
    7

    Re: Expert Knowledge Required - GPS Tracking

    Thanks for your reply!

    In fact, I too started with the ActiveX control and I ran into lot of issues, so I switched to the MapPoint Application/API model. I’m also using a winforms application to start MapPoint in a separate process, and then I close my application once MapPoint has started. Now my question to you is, how did you fix the “Proceed to Route” issue and got the turn-by-turn voice directions to work? I wrote everything from scratch, so I did not convert any code.

    BTW, why do you have to create a transparent panel and center the map if you are starting MapPoint in a different process?

    I’d appreciate your reply.

    Thanks again.

  9. #9
    mjfara is offline Member Yellow Belt
    Join Date
    Mar 2010
    Posts
    31

    Re: Expert Knowledge Required - GPS Tracking

    Hmm, why do you close your application once MapPoint has started?

    I used Paul Larsons mpGPS class, a user converted it to C#.
    You can find it a few posts down in this thread: An API to Control MapPoint 2006 GPS Features - Part I of II

    It uses sendMessage to control MapPoint. SendMessage requires handles to the buttons you want to be pressed, use spy++ (which comes with visual studio) to figure out the new button handles on your version of MapPoint.

    I use the transparent panel because I want it to look like the map is embedded into my form, but I can't do so when running it as a process, only when I use the activeX control can I embed it into my form.
    So I run my form full screen, and I leave a transparent window where I center the map.

    Are you able to embed it into your form without the method I am explaining? If so, can you please share how you accomplished this?

  10. #10
    cincoh is offline Junior Member White Belt
    Join Date
    Dec 2011
    Posts
    7

    Re: Expert Knowledge Required - GPS Tracking

    Thanks again!

    I believe my application was developed for a different purpose than yours. Mine will be used for Navigation only.

    User clicks a button provided in a different application to start an invisible winforms app (a tiny window), and it does the following…
    1. It gets the current coordinates from the GPS Port
    2. It gets the destination address from one of our application
    3. It creates an instance of MapPoint Application
    4. It gets the driving directions using the MapPoint’s Navigation class
    5. It starts the Tracking and Full Screen Navigation. (At this point, my app is detached from MapPoint)
    6. The winforms application will shut itself down once MapPoint has started successfully (as a seperate process). That way, the user can click the button again and start a new navigation for a different Lat/Lon and destination address.

    I wrote everything using C# except, I used Win32 API call (similar to Paul Larson) to close the “Safety Warning” dialog that pops up when you enable navigation.

    I’ve got everything to work so far, except the turn-by-turn voice instructions. It says "Proceed to Route" for each turn, but no street names. It seems to me like, there was a “Provide Driving Guidance” checkbox in the GPS Task Pane at one point, but it was removed in the later version of MapPoint.

    I hope I did not confuse you too much. Please let me know if you can think of a way to fix my issue.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Top MapPoint Knowledge Base Articles
    By Eric Frost in forum News and Announcements
    Replies: 1
    Last Post: 08-15-2009, 07:24 AM
  2. Channel 9: The Knowledge Chamber: Virtual Earth
    By VirtualEarth MSDN Blog in forum Bing Maps Blogs & Tweets
    Replies: 0
    Last Post: 06-09-2009, 11:40 AM
  3. Channel 9: The Knowledge Chamber: Virtual Earth
    By VirtualEarth MSDN Blog in forum Bing Maps Blogs & Tweets
    Replies: 0
    Last Post: 06-02-2009, 01:30 PM
  4. New Expert Page added to GPS Magic
    By P_Hairy in forum News and Announcements
    Replies: 2
    Last Post: 01-25-2006, 10:11 AM
  5. I need an Mappoint expert to do some consulting wo....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-21-2002, 06:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 68 69 70 71 72 73 74 75 76 77 78 79