Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Maneuver Distancein MonkeyTalk

  1. #1
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165

    Maneuver Distance in MonkeyTalk

    I have a question about ManeuverDistance. I'd like to get the distance of the next Maneuver but the API does not seem to have this property. I am creating a skin for RR with MM and I want to make the Distance as big as possible.

    While driving I find it useful to keep an eye on the distance to next maneuver, sometimes I miss the exit I need to take because the exits are very close to each other on the Spanish roads, example: ring roads junctions. I've take a few wrong exits because I did not closely at the idstance info on the top bar.

    Can I request an extension to the API to have a winsock property that has the distance to next maneuver.

  2. #2
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    I'm pretty sure it's already there...let me check
    Destinator 3 For PC! - http://www.map-monkey.co.uk/

  3. #3
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    Yep, the winsock command is Get_DistanceToManeuver however it needs a maneuver ID as it's parameter (you can get the current ID from Get_CurrentManeuverIndex but I doubt you can do that in the skin)

    If you want a single command to retrieve the distance to the next maneuver I'll have to add it. Expect an update soon
    Destinator 3 For PC! - http://www.map-monkey.co.uk/

  4. #4
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    Cheers NM, if you can add the property at some stage I'd appreciate it. No rush on it, I'm enjoying MM in it's current state.

    I looked at Get_DistanceToManeuver but as you say I'd need to get the ID and that involves writing code that I can't do in RR.

    Thanks for your support and time on this project. When I get some spare money I'll donate it.

  5. #5
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    Ruairi, if you know basic VB, write a quick Vb app to do the above in Vb and then place a custom label on your skin.

  6. #6
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    Thanks for the prompting, I jumped in the deep end and tried to write it myself. However when I ask for the distance it gives me the index number:

    dim i as integer = 1
    ...
    NextTurn.Text = MM.ManeuverDistance(i)
    NextStreet.Text = MM.ManeuverRoad(i)
    ...

    ManeuverDistance does not return what I was expecting. Will the event ManeuverUpdate give me something different for distance, I have not been able to take it on the road to test if this event gives correct distances or maneuver indexes.

    Is this a bug or am I doing something wrong?

  7. #7
    Map Monkey Creator Ninja Monkey's Avatar
    Join Date
    Aug 2003
    Location
    Warrington, UK
    Posts
    1,012
    Possibly a bug, I'll check it out
    Destinator 3 For PC! - http://www.map-monkey.co.uk/

  8. #8
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    235
    Same problem here. I'm writing some custom code in RR to get some additional information in a label in RR (Distance to next maneuver). The maneuverDistance() method returns the value of the maneuverID that you supplied in the method.
    Using the maneuver types I'm also adding pictures in my audioplayer screen and want to add the distance to the maneuver as a nice big label. Hopefully Guino will add the code to the base version of RR (said he would)
    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  9. #9
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    307, sounds like we have a similar skin in mind.

  10. #10
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    235
    I think so too. This is what I have so far.



    The arrows are a set of JPGs in a new created RR indicator I created. The distance is not yet in here but is already working as a new RR label (MMistance). I'm currently getting the distance using the ManeuverUpdate event that is fired when MM is changing to a new direction. But I also want to have the following direction and the distance to it.

    Ninja Monkey: is it possible to have the location (long and lat) of the next maneuver to calculate (in a way) the distance to the direction by using the current location?
    Attached Images Attached Images  
    My car: 2009 MAZDA CX-9 3.7L V6 runnin on LPG (Liquid Petrol Gas)
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

Page 1 of 3 123 LastLast

Similar Threads

  1. Bad performance with retrieving Monkeytalk info
    By xBrady in forum Map Monkey
    Replies: 12
    Last Post: 05-20-2005, 04:07 AM
  2. Replies: 10
    Last Post: 03-30-2005, 02:00 PM
  3. Help with MonkeyTalk and Delphi
    By Passe in forum Map Monkey
    Replies: 4
    Last Post: 03-13-2005, 03:40 PM
  4. MonkeyTalk SDK - swap map question
    By Onagrote in forum Map Monkey
    Replies: 6
    Last Post: 02-01-2005, 02:02 PM
  5. Change font in drop-down turn-by-turn menu?
    By maronoff in forum Map Monkey
    Replies: 2
    Last Post: 01-19-2005, 10:08 AM

Bookmarks

Posting Permissions

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