How to use Google Maps Geolocation API to find where am I?
-
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,
-
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