Liberty BASIC Community Forum
Liberty BASIC Programming Discussions >> API/DLL >> GPS data
http://libertybasic.conforums.com/index.cgi?board=api&action=display&num=1515508258

GPS data
Post by NSbrown on Jan 9th, 2018, 08:30am

Hello all,

how can i get windows internal/external gps location data as string or txt file?

Re: GPS data
Post by Brandon Parker on Jan 9th, 2018, 09:02am

You could try parsing the following and use Google to try an retrieve the coordinates for. It may/ may not be close enough and if not you can use a GPS module and microcontroller to communicate the true GPS coordinates back to the computer via serial communications with Liberty BASIC.

Code:
Print HTTPGet$("https://www.google.com/maps/search/my+gps+location") 



{:0)

Brandon Parker
Re: GPS data
Post by Rod on Jan 9th, 2018, 10:19am

A quick browse tells me this might be simple might be complex. The complexity comes from gaining permission to access the device and query it.

There is a 32 bit dll that is being phased out and a massive new API interface that looks pretty daunting.

But first off tell us where your device is, is it embedded in your phone/tablet or are you able to use an external device?

There are examples to search out that show you how to use an external device (USB) comm based.
Re: GPS data
Post by NSbrown on Jan 9th, 2018, 12:24pm

Hi,
Tnx for replay an answer,
I going to test two windows 10 tablts.
one with built in gps device zebra ET50/ET55 https://www.zebra.com/gb/en/products/tablets/et50-55.html

And the other with external bluetooth GPS
http://gps.dualav.com/explore-by-lifestyle/racing/xgps150-for-car-racing-and-performance/

Is there a way to bypass from gaining permission to access the device?

Do you have a sample code that you can share?

Best regards



Re: GPS data
Post by Rod on Jan 9th, 2018, 1:47pm

As far as I read the Dual Bluetooth device is Apple or Android specific, there appears to be no Windows variant. The integrated Zebra GPS probably needs a conversation with the manufacturers to get a fast start. Does it have a .dll? That's what you need to get it to talk to Liberty.

Integrated Windows GPS is all very new, so you are breaking new ground for Liberty.

USB based GPS has been done and is fairly easy. But it is not integrated and you would be plugging in a dongle.
Re: GPS data
Post by NSbrown on Jan 9th, 2018, 2:52pm

DUAL GPS also supports Windows operating system.
The device is already connected to my windows via Bluetooth.
I can also see in the control panel - Bluetooth settings - the com port it use (com3).
Can you please direct me to an example LB code which can read the device data?

Best regards
Re: GPS data
Post by Rod on Jan 10th, 2018, 01:59am

You may find the port is in use, you will have to experiment.

http://libertybasic.conforums.com/index.cgi?board=comport&action=display&num=1278181430&start=