Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Extracting street names from route Instruction 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 |
| |||
|
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;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| extracting, instruction, names, route, street |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |