Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Vehicle simulation and location detection 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 |
| |||
|
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. |
![]() |
| Tags |
| detection, location, simulation, vehicle |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |