![]() |
MapTrip Interface Android Reference Manual 9.10.1
|
Static Public Member Functions | |
| static native int | setGpsModeSendToServer (boolean doSendToServer) |
| static native int | setOdometry (double meters, boolean relative, boolean setPosition) |
| static native int | sendGpsData (double latitude, double longitude, double height, double speedInKmh, double heading, int numberOfSatellites, int quality, GpsMsgType messageType, int timeYear, int timeMonth, int timeDay, int timeHour, int timeMinute, int timeSecond, int timeMilliSecond) |
| static void | addListener (GPSListener listener) |
| static void | removeListener (GPSListener listener) |
| static void | removeAllListeners () |
|
static |
|
static |
|
static |
|
static |
If GPS mode is set to GPS.setGpsModeSendToServer() (true) is called before, this method can be used to send GPS data to the server. F.e. if only one GPS receiver is accessible per application, the data can be distributed in that way.
| latitude | - latitude in decimal degrees |
| longitude | - longitude in decimal degrees |
| height | - height in meters |
| speedInKmh | - speed in km/h |
| heading | - heading in degrees |
| numberOfSatellites | - number of satellites |
| quality | - quality |
| messageType | -
|
| timeYear | - Format YYYY |
| timeMonth | - Format MM - 1 - 12 |
| timeDay | - Format DD - day of month |
| timeHour | - 0 - 23 |
| timeMinute | - 0 - 59 |
| timeSecond | - 0 - 59 |
| timeMilliSecond | - Not used |
|
static |
This functions allows to deactivate the servers GPS receiver and indicates that the server will receive GPS information from the client application via the method GPS.sendGpsData(). Especially if only a single GPS receiver is available, this function can be used to specify how the data shall be distributed.
If the parameter is set to true, no further GPSListener.onGps() will be received until the mode is set to false (default setting).
| doSendToServer | -
|
|
static |
Sets the current odometry of a vehicle. It is set in absolute meters or in relative meters, traveled since the previous call. If setNewPosition is true and if there is a current route guidance, a new position is generated by the odometry.