All Projects → taimos → GPSd4Java

taimos / GPSd4Java

Licence: Apache-2.0 license
GPSd client library written in Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to GPSd4Java

exploring-my-neighborhood
track all your moves and visualize them!
Stars: ✭ 16 (-60%)
Mutual labels:  location
react-native-android-notification-listener
React Native Android Notification Listener - Listen for status bar notifications from all applications
Stars: ✭ 87 (+117.5%)
Mutual labels:  listener
midi-eye
Ruby MIDI input event listener
Stars: ✭ 24 (-40%)
Mutual labels:  listener
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+95%)
Mutual labels:  location
ikisocket
🧬 WebSocket wrapper with event management for Fiber https://github.com/gofiber/fiber. Based on Fiber WebSocket and inspired by Socket.io
Stars: ✭ 92 (+130%)
Mutual labels:  listener
zx-ip-address
Deprecated
Stars: ✭ 96 (+140%)
Mutual labels:  location
rpi boat utils
Utilities for Raspberry Pi, mostly for usage on a boat. Includes UART control scripts, traffic measurement tools for Mikrotik (RouterOS) and OpenWrt, AIS wireless daemon, AIS decoder and an extensible boat & IoT sensor daemon for Signal K.
Stars: ✭ 71 (+77.5%)
Mutual labels:  gpsd
oso-backend
Heart of the oso project.
Stars: ✭ 12 (-70%)
Mutual labels:  location
LocationShare
A simple Android application to share your location
Stars: ✭ 75 (+87.5%)
Mutual labels:  location
QuakeMigrate
A Python package for automatic earthquake detection and location using waveform migration and stacking.
Stars: ✭ 101 (+152.5%)
Mutual labels:  location
XamarinForms.LocationService
Xamarin Background Services, Background Location Updates, Location Updates, BroadCastReceiver
Stars: ✭ 61 (+52.5%)
Mutual labels:  location
CarAnimation
A project for the implementation of the car animation feature in most ride-sharing/ food delivery apps
Stars: ✭ 45 (+12.5%)
Mutual labels:  location
WeChatSendLocation
仿微信发送位置模块 包括位置的选取 位置的查看 导航街景路线等
Stars: ✭ 19 (-52.5%)
Mutual labels:  location
Unity-EventBinder
User Interface Event decoupler
Stars: ✭ 27 (-32.5%)
Mutual labels:  listener
ktor-API-examples
Examples with ktor to create an API REST
Stars: ✭ 23 (-42.5%)
Mutual labels:  location
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+567.5%)
Mutual labels:  location
SimpleLocationGetter
No description or website provided.
Stars: ✭ 21 (-47.5%)
Mutual labels:  location
Yakhont
The high-level Android components library for data loading, location, lifecycle callbacks and more.
Stars: ✭ 13 (-67.5%)
Mutual labels:  location
Generation
⭐ A Private, Secure, End-to-End Encrypted Messaging app made in Flutter(With Firebase and SQLite) that helps you to connect with your connections without any Ads, promotion. No other third-party person, organization, or even Generation Team can't read your messages. 💝
Stars: ✭ 18 (-55%)
Mutual labels:  location
jetty-load-generator
jetty-project.github.io/jetty-load-generator/
Stars: ✭ 62 (+55%)
Mutual labels:  listener

Maven Central

About GPSd4Java

GPSd4Java is a library to use data from the GPSd daemon in your Java applications. It provides a library to connect to gpsd and retrieve data using a socket connection.

Use GPSd4Java

You can use GPSd4Java with a Maven project. Just add the following lines to your pom.xml.

<dependencies>
	<dependency>
		<groupId>de.taimos</groupId>
		<artifactId>gpsd4java</artifactId>
		<version>$VERSION</version>
	</dependency>
</dependencies>

Getting Started

The main entrypoint to use GPSd4Java is the class GPSdEndpoint. You can create a new instance by providing the host and port of the gpsd daemon. Further you have to provide a ResultParser instance which parses all messages sent by the GPS device.

On the created endpoint you can then add listeners to handle incoming messages. This listener will receive the message on the appropriate method according to the message type. The most interesting messages are the TPVObjects as they contain the positional information provided by the GPS device.

To get the position you just have to call the getLatitude() and getLongitude() methods on the received TPVObject.

If all is set you activate the endpoint using the start() method.

If this succeeds you can either poll gpsd for new messages or you can enable the watch mode to receive new data on arrival.

Polling data

To poll single messages call the poll() method on the endpoint instance

Activating watch mode

To get all new messages call the watch(boolean, boolean) method. The first param defines if you want enable or disable the watch mode and the second defines if you want to receive messega details. So the default use case would be to call watch(true, true).

You should now receive incoming messages in your provided listener implementation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].