View Full Version : Maybe an easy question for you guys...
12-01-2002, 03:53 PM
Ok i will rephrase the question another way... I can read GPS info and plot my lat/long on the screen... at the same time i have entered the waypoints for DESTINATION and STARTING point. I have called the Calculate function and it has mapped & drawn the route. Now my problem is this...once the car starts moving and i go off track, is there a function or a way i can detect this and then re-calculate from this point ???
12-02-2002, 10:40 AM
ok, its being viewed 22+ times and still no respond. I am sure there is a way to do this....
12-02-2002, 01:01 PM
What about writing a function that gets the road/street that your GPS says you on on and compare it to your route. If the road you on on does not match any of the roads in your directions, re-calculate the route. Since your GPS might not have you plotted right on a road (maybe off the road by a few feet) check out this article which has a function to get the nearest address.
Reverse Geocoding, Pt. III by Walt Cygan
12-03-2002, 08:00 AM
I get what you are trying to say but the problem really is with the ROUTE. All you can get from that object is the Directionsm,turns,distance, and few other things. If i try to access the LOCATION object within the ROUTE, it is NULL (empty). If i could get that then i should be able to solve the problem. Maybe you or anyone can tell me how to get the address from the ROUTE object.
12-03-2002, 02:56 PM
I would try first getting the coordinates of the line out (see if this helps: http://www.mp2kmag.com/articles.asp?ArticleID=72&key=merge.multiple.routes) then as the pushpins moves do the mathematical calculations to see if the vehicle has say deviated more than a fifth of a mile off the route..
12-03-2002, 07:47 PM
Hmmm i still dont get it. :evil:
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO