How to use Google Maps Geolocation API to find where am I?
-
wrote on 24 Oct 2017, 05:42 last edited by
I have embedded Linux device. I am using Qt Creator 3.5.1 (Based on Qt 5.5.1). I couldn't find any example such as ( https ctrlq.org/maps/where/) .
I need to see, (where am I) using my embedded Linux device. I created a google API key and activated.
Does anyone know how to achieve Google Maps Geolocation API to find where am I?
Kind Regards,
-
wrote on 25 Oct 2017, 06:25 last edited by
Well. There's a lot of ways but - what location information/hardware do you have available?
Does your device have a GPS etc? No doubt GPS may be the easiest and more accurate method for many scenarios. You may or may not have access to the sky...There are other solutions that may work if you have limited information like: http://geobytes.com/iplocator/
Once you know where you are, whether it's a best guess, a place you know or a coordinate from a device - you can geocode or reverse geocode depending:
Pretty much everything you need to use that API key, I believe (it's been some years since I've had to do this stuff) can be found out @ https://developers.google.com/maps/documentation/geocoding/intro
Or am I mistaken and you have a GPS and want to interface with it or something?
For a Raspberry PI for example, there's guides around like:
https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi?view=all -
wrote on 3 Nov 2017, 07:49 last edited by
Thank you 6thC,
My device doesnt have GPS. So I have to cancel my project and do someting better. Kind Regards