MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Restrict routes based on country of origin/destination

This is a discussion on Restrict routes based on country of origin/destination within the MapPoint Desktop Discussion forums, part of the Map Forums category; All, Is there a way in any recent version of MapPoint to restrict the routes to occur within a particular ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-17-2010
Junior Member
White Belt
 
Join Date: Oct 2009
Location: USA
Posts: 9
Restrict routes based on country of origin/destination

All,

Is there a way in any recent version of MapPoint to restrict the routes to occur within a particular country?

For example, I have customers in Detroit, MI who wish to move product to Buffalo, NY. MapPoint routes the customers through Canada at a distance of 256 miles. Staying within the U.S. borders, the routing should be a distance of about 360 miles. Crossing into Canada and then back to the U.S. is not an option due to Customs and fees.

For movements within the United States, I want to restrict the routes to only occur within the United States. For Canada only movements, I would also want to restrict routes over only Canadian roads. For movements between countries, the route should only cross the border one time. Is there any way to do this?

Thanks,

Andy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-17-2010
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,580
Blog Entries: 3
Re: Restrict routes based on country of origin/destination

At border crossings, you can put in "Avoidance polygons". That will force MapPoint not to cross the border. It it helps, you can post your PTM file (zip it first) I'll put in the avoidance polygons for you and post a screenshot to illustrate.
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2010
Junior Member
White Belt
 
Join Date: Oct 2009
Location: USA
Posts: 9
Re: Restrict routes based on country of origin/destination

Quote:
Originally Posted by Eric Frost View Post
At border crossings, you can put in "Avoidance polygons". That will force MapPoint not to cross the border. It it helps, you can post your PTM file (zip it first) I'll put in the avoidance polygons for you and post a screenshot to illustrate.

Eric,

Thanks for the tip. I had not seen that before in MapPoint, and can now see how to create one manually.

Do you have any coding tips to create this avoidance polygon via VBA? I currently have all my origin and destination LATS & LONGS in an Excel file that I pass to MapPoint via VBA to calculate and obtain distances. If I separate the same country od-pairs from those requiring border crossings, I suspect I could create my "avoidance polygon" only when needed.

Regards,

Andy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2010
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,580
Blog Entries: 3
Re: Restrict routes based on country of origin/destination

I think that would be difficult, as the avoidance polygon has to be precisely over an intersection for it to work (drawing somewhere along a segment doesn't work, it has to be an intersection).

However there shouldn't be too many border crossings? I think maybe just take the time to draw the avoidance polygons and then save them in your default template.

Eric
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-17-2010
Junior Member
White Belt
 
Join Date: Oct 2009
Location: USA
Posts: 9
Re: Restrict routes based on country of origin/destination

Thanks Eric.

I could then create one template with the avoidance polygons and one without, and have an option in the Excel spreadsheet to turn off/on border crossings to select the proper template to obtain the route distances.

Andy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 03-17-2010
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,580
Blog Entries: 3
Re: Restrict routes based on country of origin/destination

That sounds like a good solution.
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
based, country, origin or destination, restrict, routes


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
country & city information based on latitude & longitude harshaghanta Bing Maps and MapPoint Web Service 0 10-22-2009 12:43 PM
How to restrict user from changing pushpin information... Learner MapPoint Desktop Discussion 3 03-24-2006 01:23 AM
Help ........ Multiple Routes from One Origin Tanya789 MapPoint Desktop Discussion 2 11-26-2004 11:50 AM
How to restrict map area in ActiveX? ErikS MapPoint Desktop Discussion 1 07-26-2004 12:34 PM
I would like to store an origin and a destination .... Anonymous MapPoint Desktop Discussion 2 06-22-2004 07:35 AM


All times are GMT -5. The time now is 05:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3
MP2K Magazine
Visitor Map



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