Skip to content

BigflipBOT/gm2osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gm2osm

Script for translating Google Maps links to Open Street Map links

Installation

just install requirements

pip install -r requirements.txt

Usage

After instaling requirements just run the program with python3. Pass one or multiple links to as arguments. Run with no arguments for interactive mode.

Example usage:

python3 gm2osm.py "https://maps.app.goo.gl/mz6dfDmxERCedFdJ8" "https://www.google.com/maps/@7.2266071,-6.1675468,5z?entry=ttu&g_ep=EgoyMDI1MTAwMS4wIKXMDSoASAFQAw%3D%3D" "https://maps.app.goo.gl/8q3HjQg2QSxF1mhU9"

Example output

https://www.openstreetmap.org/search?lat=50.7677464&lon=16.2824705&zoom=19
https://www.openstreetmap.org/search?lat=7.2266071&lon=-6.1675468&zoom=19
https://www.openstreetmap.org/search?lat=40.7889535&lon=-73.8140462&zoom=19

How does it work?

Google maps in some cases stores coordinates in links to places with names / addresses and you can just regex them. In cases when it doesn't it is possible to resolve to this kind of link by making a request to the google maps site and looking for a redirect to this kind of link.

About

Script for translating Google Maps links to Open Street Map links

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages