retrieve a GPS position

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

retrieve a GPS position

Post by fouednoomen »

Good morning all,
I want to know how I can retrieve a GPS position through a laptop of a commercial agent to update the gps position and the address of a customer.
thank you in advance.
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: retrieve a GPS position

Post by serge_girard »

Hi Foued,

Maybe Jimmy (Auge) or Daniel Maximilliano or Edward (EDK) has an idea about GPS tracking etc?

Serge
There's nothing you can do that can't be done...
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: retrieve a GPS position

Post by fouednoomen »

I have already entered into a private discussion with Daniel but he has no solution for the moment.
any help please.
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: retrieve a GPS position

Post by fouednoomen »

Hi serge ,

Hello serge, I just came across this link, it could be useful for us as a start.
Can you see with me

http://www.pctoledo.com.br/forum/viewto ... ps#p105657
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: retrieve a GPS position

Post by andyglezl »

Maybe...
https://support.microsoft.com/en-us/win ... 5ca1c49088


GPS coordinates are available only on mobile browsers. What you are discussing is geolocation generally. Your dekstop or laptop computer does not have GPS device. Locations are expressed in latitude and longitude.

For iOS use iOS emulator. You can set fake GPS coordinates. You can download it from developer.apple.com.

For Android use Android emulator. You can set fake GPS coordinates. Google Android SDK.

For other browsers / mobile vendors download the corresponding emuator.

Desktop browsers do not use GPS data. They use either IP based or WLAN based locationing. For desktop browsers just write your own test stub for navigator.geolocation.
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2064
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: retrieve a GPS position

Post by AUGE_OHR »

hi,

i do not have GPS "build-in" so i can´t talk about it

i do have a external GPS-Tracker which connect via Bluetooth.
it use a "virtual" COM Port 5 with NMEA Protocol

i use it with (old Version) of M$ Mappoint
it does have a ActiveX Interface to get/set GPS longitude/latitude

you can search for a ActiveX which give you GPS Coordinate using NMEA Protocol

---

most i found are using Java-Script and "ask" Internet for "GetPosition" which is not real GPS.
while Consumer GPS is 10 m it will be about 100 m with "GetPosition"

as i understand it use 1st Internet Point, where you are connect to, which can be identify by "GetPosition"
that seems to be used by Browser to identify your Location and did not work with VPN

---

using "build-in" Hardware like Camera or GPS seems using DotNet only ( for Windows Apps )

it "seems" easy to use "build-in" Hardware with Android and OT LIB
https://forums.fivetechsupport.com/view ... 0&p=177502
> Fivetouch can use GPS, accelerometer, altimeter, camera and other on smartphones?

Yes (conceptually).
Tested OK: QCamera : Example : /addons/hbqtwidgets/tests/camera.hbp [ included in HbQt ]
Tested OK: GPS : Example - embedded : addons/hbqtwidgets/tests/demovisualizer.hbp : Lib - QtPositioning [ included in HbQt ]
Not Tested: Sensors : Lib - QtSensors [ included in HbQt ]

HbQt contains all Qt libraries with almost all classes and methods.
... QT LIB can be used with HMG ... c:\hmg.3.4.4\HARBOUR\contrib\hbqt\ ... but it is a older Version ... have not test it yet
have fun
Jimmy
Post Reply