I'd like to display my current location on Google Map with Razpai + GPS module, but I'm having a hard time because I don't know how to do it.

Asked 2 years ago, Updated 2 years ago, 145 views

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).

Environment

·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.

$cd to/GPSCAP
    $. / tude.py

Then, the latitude and longitude will be displayed as shown in the image below.

src=

with latitude and longitude displayed on the terminal

※ 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.

(There was only one website that said how to use Trackrr.io, but when I tried to register with Trackrr.io, I failed to register, so I gave up.)

"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

2022-09-30 11:57

1 Answers

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-09-30 11:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.