问题
I have a usb/bluetooth gps receiver and I would like to know how could I get the gps location using Java SE Desktop? I couldn't find information for java se. Is there any example?
Thanks
回答1:
Most USB GPS receivers I know provide the data on a (virtual) serial port in NMEA-format.
So you have to connect to the serial port to read the data. I have never used a serial port in Java, but I guess there are many docs and tutorials out there. Maybe this Wikibook is a good starting point.
来源:https://stackoverflow.com/questions/7790075/how-to-get-usb-bluetooth-gps-receiver-location-using-java-se