Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Speed Limit or Street Type within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How can I extract the street type from a Location object. I am reverse geocoding Lat/Lon from NMEA data and ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Speed Limit or Street Type Thanks |
| |||
|
Hi, I dont think you can But how do you extract this information with a route object ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Quote:
objRoute.DriverProfile.Speed(geoRoadLimitedAccess) = 55 So I though there might be some way to do it using a Route object to get the geoRoadType I cannot believe MS would not expose such crucial data for most mapping needs. Thanks |
| |||
|
Hi, You need exacly what I needed a while ago but I could not find it
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I tried this trick but it does not work. The idea was to get the drive time and distance to a very close location and compute the speed. But the speed is too low. Either I am missing something or Mappoint takes into consideration turns and stops etc. try { MapPoint.Location Loc; Loc = MP.ActiveMap.GetLocation(32.897125,-117.119782,1.0); MP.ActiveMap.ActiveRoute.Waypoints.Add(Loc,"Loc1") ; MapPoint.FindResults FR = Loc.FindNearby(1.0); object O = null; //Get the farthest object foreach(object L in FR) { O = L; } MP.ActiveMap.ActiveRoute.Waypoints.Add(O,"Loc2"); MP.ActiveMap.ActiveRoute.Calculate(); double d = MP.ActiveMap.ActiveRoute.Distance; double t = MP.ActiveMap.ActiveRoute.DrivingTime ; double t1 = t*24; //Same result if divide by geoOneHour double s = d/t1; MessageBox.Show("Distance = " + d.ToString() + "\r\nTime=" + t1.ToString() + "\r\nSpeed=" + s.ToString(),"Ave Speed" ); } catch(Exception E) { MessageBox.Show(E.Message.ToString()); } Can anyone shed some light on why the result is not correct ? The speed comes to around 4 MPH if get the nearest and about 12 for farthest. Thanks |
| |||
|
Hi Srini, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| limit, speed, street, type |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Street type from coords | michele | MapPoint 2006/2009 Discussion | 2 | 05-10-2006 08:36 AM |
| Getting the speed limit at a particular coordinate | BobFromBoston | MapPoint 2006/2009 Discussion | 2 | 01-09-2006 07:09 AM |
| street address limit | bob | MapPoint 2006/2009 Discussion | 5 | 11-04-2003 07:51 AM |
| Limit map ???? | douglas | MapPoint 2006/2009 Discussion | 1 | 06-06-2003 05:45 PM |
| What is the actual limit? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-03-2002 02:53 PM |
Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!