View Single Post
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#23
Originally Posted by Android_808 View Post
I'm guessing MapsPlugin is a XPCOM library. Where on the file system would this be located and would it be compiled or interpreted. I have found several warnings in the index.html file for functions like pause, resume etc. within GuidanceMockup which may be implemented in the library above. It would also appear that the Guidance instance is called by several dispatch functions. pauseNavigation() for example calls this._guidance.pause().

I imagine if there is a call to this library somewhere to display the directions at a given time on route, an extra function could be added to the dispatcher, using some sound library, to play standard Ovi voice files.

I have actually been trying to follow the GuidanceModel function and access its functions (eg get the distance to next manaeuver using getNextManeuverDistance). However it seems that the plugin does not support any of these functions to being with. They seem to have just been thrown in there maybe for the future or a different OS. On the desktop GuidanceMockup is run since the oviplugin doesn't support GPS hence no guidance, however on the n900 it seems to "support" the GuidanceModel, so pausenavigation, repeatlastvoicecommand etc, but since the plugin doesn't have any of these commands, its basically returning nothing.

I'm thinking to get it to work, we might need to employ other methods, such as checking to see if the position comes close enough to a maneuver (ie we're driving over it) and hence the next one in the array is coming up (so notify the driver). However it won't have distance to next turn or any of the other features.

Otherwise we can somehow change the plugin to support those commands (which is probably impossible )
 

The Following 6 Users Say Thank You to Blaizzen For This Useful Post: