MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Vehicle simulation and location detection

This is a discussion on Vehicle simulation and location detection within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am coding a C# project using MapPoint Web Service 3 and would like to know if anyone has some ...


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 02-05-2004
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 2
Vehicle simulation and location detection

I am coding a C# project using MapPoint Web Service 3 and would like to know if anyone has some ideas on how to solve my problems. My issue is that I require some way to simulate a vehicle traveling along a MapPoint route I then need to detect when a vehicle is within a specified distance of a lighted intersection and run a seperate class on this occurance.

Currently all I can think of to simulate a vehicle is to continuously feel lat/lon points but this seems like a very poor method. Does anyone have a more elegant sugestion? All ideas are welcome and your help is greatly appreciated
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 02-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hello,

There probably isn't a real good way to do this for several reasons:

1. When you get a result set containing directions it will include the lat/longs for the starting and ending points of a particular street segment. The problem here is that it doesn't not include lat/longs or pixel coords along that segment. So, if you have a long street segment there's really no way to know the pixels or lat/longs to pass in. The problem would show itself when that street is long and has a curve. Because you only have the start and end points you would have to figure the lat/longs (if you were getting a new image from MapPoint constantly as you moved along the segment) or pixels (if you were drawing on the client side) your self and there would be know way for you to know that the street curved. This would cause your simulated vehicle to cut across this curve and depending on the street could look pretty ugly.

Note: Drawing the vehicle each time it moves using the web service is not a good idea because first, it a billable transaction for every getmap call and it also would be slow if you want make the vehicle movement look smooth. You would almost be forced to draw the movement on the client side.

2. How are you determining/finding the 'lighted intersection'?

The only part that is easy to determining the distance between the simulated vehicle and the intersection (if you can find a good way to determine these coords to start with). The SDK includes the code for calculating Great Circle Distance.


Steven Pushee

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
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 02-11-2004
Junior Member
White Belt
 
Join Date: Jun 2003
Posts: 5
You tell that the result set containing directions include the lat/longs for the starting and ending points of a particular street segment. How can I get these starting and ending points ?
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
detection, location, simulation, vehicle


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
GPS simulation Gary K MapPoint 2006/2009 Discussion 1 07-26-2005 04:28 PM
plot history of vehicle starbuck MapPoint 2006/2009 Discussion 4 01-08-2005 09:30 AM
plot history of vehicle starbuck MapPoint Web Service and Virtual Earth 0 01-03-2005 07:10 PM
mappoint installed detection Anonymous MapPoint 2006/2009 Discussion 1 10-29-2004 04:47 PM
PushPin Selection detection in Delphi? shadbell MapPoint 2006/2009 Discussion 3 12-18-2003 11:26 AM


All times are GMT -5. The time now is 07:04 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


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