MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Speed Limit or Street Type

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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-23-2005
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 4
Speed Limit or Street Type

How can I extract the street type from a Location object. I am reverse geocoding Lat/Lon from NMEA data and want to get the speed or the RoadType. Can I get this without creating a route object and adding them as waypoints ?

Thanks
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-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

I dont think you can
But how do you extract this information with a route object ?
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 08-23-2005
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 4
Quote:
But how do you extract this information with a route object ?
I am not sure . I was browsing the help and saw this

objRoute.DriverProfile.Speed(geoRoadLimitedAccess) = 55

So I though there might be some way to do it using a Route object to get the geoRoadType . Mappoint has this information as it uses it in computing the time to travel. Its just a question if this is exposed as an API ?

I cannot believe MS would not expose such crucial data for most mapping needs.

Thanks
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 08-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi,

You need exacly what I needed a while ago but I could not find it Maybe someone else knows it _if_ it is exposed in the API...
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 08-24-2005
Junior Member
White Belt
 
Join Date: Aug 2005
Posts: 4
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
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 08-24-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Hi Srini,

Quote:
or Mappoint takes into consideration turns and stops etc.
Great idea, but I think you right, wont work...
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


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
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


All times are GMT -5. The time now is 08:38 AM.


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

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.


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