I was able to get the current latitude and longitude from the terminal using the raspy + GPS module, but I'm having trouble because I can't display the current location on Google Map (like your current location is here).
·Raspberry Pi 3
·GPSCAP (link here)
GPSCAP is a GPS module sold in conjunction with the April 2017 issue of Raspy Magazine. By entering it from the terminal as shown below, the latitude and longitude are displayed every second on the terminal.
Then, the latitude and longitude will be displayed as shown in the image below.
※ Some latitude and longitude information is hidden
Also, by using another Python program included, we were able to save information about time/latitude/longitude/altitude/speed etc. in .txt format.
I searched Google many times, but there were so-called "GPS loggers" (which later read and display routes through Google Maps, etc.), but there was no Google Maps displaying the current location of GPS modules in real time.
"I am a beginner of the program ""super"", so I would appreciate it if you could kindly tell me what kind of scripts to write and how to write them."
Thank you for your cooperation.python python3 raspberry-pi gps
How to display Google Maps with markers (located in latitude and longitude) is explained on the following pages of Google Maps.
Add Google Maps with Markers to the website
"I don't know what ""real-time"" in the question is looking for, but I think I can display the current location by rewriting Google Maps regularly (if there is a change in latitude and longitude)."
© 2022 OneMinuteCode. All rights reserved.