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 18

Extract the best route

This is a discussion on Extract the best route within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am evaluating the use of MapPoint for a web application, so I'm less than a newbie. My main ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Extract the best route

    Hi,

    I am evaluating the use of MapPoint for a web application, so I'm less than a newbie.
    My main goal is to extract, having the starting and ending point, "the best route"; where "the best" is not the shortest or the fastest, but the one that best satisfy some criteria.
    My question is :

    It's possible to extract more than one route with the same start point and the same end?

    or, better :

    It's possible to create some "points-of-interest" in the MapPoint database, assigning them property like "class of Interest" and "Weight of Interest", and them devolve to MapPoint the job to extract the best route?

    I hope that my English is good enough to make me understand.

    Thank you to everybody

    Marcello

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Yes you can set each waypoint to Quickest / Shortesd or Perferred. And for each waypoint you can set all speed limits and preferred roads on a scale 0..10.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi Wilfried,

    I was looking in the SDK and for "SegmentPreference Enumeration" the only preference I found were Quickest and Shortest.
    There is a particular way to set other criteria?

    thank you for the help.

    Marcello

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Marcello,

    There are 3 of them:

    Code:
            geoSegmentQuickest = 0,
            geoSegmentShortest = 1,
            geoSegmentPreferred = 2,

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks Wilfred,

    I think this is not useful for me. As I can understrand wirh "geoSegmentPreferred" you can select preferences about the type of road (highways, major roads ...).
    I need to calculate the "best" road for my criteria, the one for example that pass near some hotels, or restaurants.

    Marcello

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Marcello,

    What you eventually can do is create a database with the interesting points, hotels, restorants, etc that you want. Store also in database the coordinates of it. Then after calculation of the road, you search for each via point if you have interesting points nearby. Then calc the road again with these points as waypoint.

    Hope I make sence ...

  7. #7
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Yes Wilfried,

    that was the solution I was thinking.
    But yesterday nigth, during a meeting, the customer changed Idea about the logic .
    So now I have to calculate, once extracted from a database a set of 'interesting' waypoint, a route that touck all (or some) of then

    Maybe I'm abusing of your patience, but this new logic generate 2 new question :
    . It's possible to extract a route without knowing the first and the last waypoints?
    . The waypoits must be passed in 'visit order' or you can devolve to MapPoint the work to extract the shortest (fastest) route that incudes all of them?

    Thank you for your help

    Marcello

  8. #8
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Marcello,

    Dont understeand My english is too bad
    Please try to explayn exacly what customar wants. This is to get a more clear view on the problem.

  9. #9
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi Wilfried,

    my English is bad too,I'm Italian, sorry
    The problem is (simplified):

    . insert in a Database a number of "Point of interest" (museums, parks, lakes, sport spots, ...) and then connect them with MapPoint localization
    . the user of the site give his preference (I like fishing and climbing)
    . based on the user choiches, I have to extract, from the database, a set of "Point of interest" that the user could visit
    . I have then to calculate and suggest the route

    So I don't know :
    . the starting and the ending point of the route
    . the shortest way for touch all the "Point of interest", so the order of the
    waypoints


    Thank you

    Marcello


    I hope now i

  10. #10
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Marcello,

    You have an intersting problem

    So the biggest problem is:
    - how to move all the points in such a way that mappoint can calculate a route (because the points can be in _any_ geografical order)
    - where to begin and end the route

    Have I understeand more or less ?
    Hmm I have to think on this... need coffee !!!!

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. Extract all streets names of a country...
    By iko82 in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 07-19-2006, 08:17 AM
  2. Extract icons from MP 2004
    By Gerhard Faber in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-23-2006, 09:07 AM
  3. Extract Lat/Long by Zip Code
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-25-2004, 07:52 AM
  4. Extract all zipcodes from MapPoint via C#.NET
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-09-2004, 10:56 PM
  5. Extract route order
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-17-2002, 10:11 PM

Tags for this Thread

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