The OziExplorerCE API provides an interface which can be used to control the OziExplorerCE software.
All functions in the API only work with OziExplorerCE version 1.11.0 or later.
The API uses a combination of Windows Messaging and Files to send commands and data to OziExplorerCE.
At this stage the API is mostly for displaying positions with a specified symbol, very useful for displaying the positions of other vehicles (AVL).
An example program for the PocketPC 2002 written in Embedded Visual Basic is available for download.
The method to use the API is as follows.
The documentation below is not yet complete, it is expected that you will refer to the example program
Command Number | Command |
|
|
101 |
|
102 |
Delete an AVL VehicleExample code vName = "Vehicle 2" |
103 |
Clear all AVL VehiclesExample code ' this sends the message to OziCE |
Other |
|
110 |
Center the map on this position - useful for having the map center on an AVL vehicleWrite the data to a file called apidata1.$$$ and send a message to OziExplorerCE Example code ' now track it on screen |
136 |
Find best map and center the map on this position - useful for having the map center on an AVL vehicleIf tracking the gps you will also need to call the "Disable GPS Tracking" command otherwise the map will return to the GPS location. Write the data to a file called apidata1.$$$ and send a message to OziExplorerCE Example code ' now track it on screen
|
120 |
Have OziExplorerCE return its GPS position when processing moving map.The position is returned in a file called apidata2.$$$ Example code ' OziCE found |
130 |
Start Serial Communications (normal moving map with GPS connected to the serial port).Example code ' this sends the message to OziCE If a start
command (130 or 131) has already been called always use the stop command
before calling another start command. |
131 |
Start NMEA API (nmea sentences send to OziCE using the OziCE API).Example code ' this sends the message to OziCE If a start
command (130 or 131) has already been called always use the stop command
before calling another start command. |
132 |
Stop Serial Communication or API nmeaThe same command is used to stop both Serial moving map and API moving map Example code ' this sends the message to OziCE |
133 |
Send NMEA sentence to OziCE using the OziCE API.The NMEA string is sent in the apidata1.$$$ file Any type of NMEA string can be sent - example you could send the GPRMC sentence for position, speed and bearing and also the GPGGA string for OziCE to get the altitude. Only 1 string can be sent in the file at a time. ' This is the procedure fro using the API to send NMEA strings to
OziCE |
134 |
Enable GPS TrackingExample code ' this sends the message to OziCE |
135 |
Disable GPS TrackingExample code ' this sends the message to OziCE
|
150 |
Start Route Navigation ForwardExample code ' this sends the message to OziCE
|
151 |
Start Route Navigation ReverseExample code ' this sends the message to OziCE
|
152 |
Stop Route NavigationExample code ' this sends the message to OziCE
|
153 |
Load Route FileWrite the route file name (with full path) into a file called apidata1.$$$ and send a message to OziExplorerCE Example code ' now track it on screen
|
If you place a file called wpl2avl.dat (WPL2AVL.DAT) in the folder where the OziExplorerCE.exe file is installed the OziExplorerCE will automatically process any $GPWPL nmea messages and create an AVL Vehicle at the position using the "avl1.bmp" symbol.
To use this feature there is no need to use the API, OziExplorerCE automatically processes the $GPWPL messages itself.