Community of VE/MapPoint 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 ...
| |||||||
| 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 |
![]() |
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 |
Ski Holiday France
It is not hard to see why a ski holiday in France is such a popular option for so many. There is a huge range of diverse ski resorts to cater for various styles and abilities.
Online Travel Agent Uk
UK's Best Travel Agent at the Guardian Unlimited travel awards. We have UK Online Travel Agents free to help with your travel.
Holidays Italy
Book your holidays in Italy. Italy has a great climate and the beaches to go with it. Book a great deal for great value online at dealchecker.co.uk.
Holidays in Cuba
Holidays in Cuba are an eclectic mix of golden beaches, rich, colourful scenery and a proud cultural heritage. Book a break in Cuba now!
Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.
Travel Tickets
Travel tickets need not always be expensive. Check out your best travel comparison site, Travel.co.uk
Holidays to Cyprus
Take the plunge into a world of summer splendour! Find information on holidays to Cyprus online, only at On The Beach.