MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Extracting street names from route Instruction

This is a discussion on Extracting street names from route Instruction within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Has anyone done or does anyone know how to programmatically extract the street names from a Directions(i).Instruction property? I’d like ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-18-2005
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 1
Extracting street names from route Instruction

Has anyone done or does anyone know how to programmatically extract the street names from a Directions(i).Instruction property? I’d like to know just the name of the street. For example:

For “Turn RIGHT (East) onto Paradise Lake Rd, then immediately turn RIGHT (South) onto Bostian Rd”, I’d like to get: “Paradise Lake Rd” and “Bostian Rd”.

For “Turn RIGHT (North-East) onto SR-202 [NE 175th St]”, I’d like to get “NE 175th St”

For “Turn LEFT (North) onto SR-202 [131st Ave NE]”, I’d like to get “131st Ave NE”.

For “Take Ramp (RIGHT) onto SR-522” I’d like to get “SR-522”.

For “Road name changes to Crystal Lake Rd” I’d like to get “Crystal Lake Rd”.

In other words, has anyone figured out the possible formats for this string so they can extract just the street names?

Curt
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 08-18-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi
Code:
            Directions dir = route.Directions;
            for (int i = 0; i < dir.Count; i++) {
                object o = i;
                map.Location = dir.get_Item(ref o).Waypoint.Location;
And there you go
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
extracting, instruction, names, route, street


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
Route Direction Location Instruction disweij MapPoint 2006/2009 Discussion 3 10-17-2005 02:45 PM
Street Names etc... Milo MapPoint 2006/2009 Discussion 1 04-27-2005 03:16 PM
street names Anonymous MapPoint 2006/2009 Discussion 0 06-04-2003 07:49 AM
Extracting the route sequence ivtch MapPoint 2006/2009 Discussion 2 03-11-2003 04:29 PM
How can I get all the street names in a city? Anonymous MapPoint 2006/2009 Discussion 4 11-04-2002 08:06 PM


All times are GMT -5. The time now is 10:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
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