{"id":37903790,"url":"https://github.com/bjzhb666/get_google_maps_image","last_synced_at":"2026-01-16T17:07:31.408Z","repository":{"id":245047630,"uuid":"816849350","full_name":"bjzhb666/get_google_maps_image","owner":"bjzhb666","description":"This code is used to get images from google maps given a GPS region or a center GPS point and a Zoom level.","archived":false,"fork":false,"pushed_at":"2024-12-16T08:28:52.000Z","size":33,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T09:28:02.122Z","etag":null,"topics":["go","google","google-maps-api","googlemaps","gps","maps","opensatmap","satellite-imagery"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bjzhb666.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T14:12:54.000Z","updated_at":"2024-12-16T08:28:56.000Z","dependencies_parsed_at":"2024-11-24T10:17:29.386Z","dependency_job_id":"e10588c8-86f1-4065-a4aa-455a8c8e2b3e","html_url":"https://github.com/bjzhb666/get_google_maps_image","commit_stats":null,"previous_names":["bjzhb666/get_google_maps_image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bjzhb666/get_google_maps_image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjzhb666%2Fget_google_maps_image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjzhb666%2Fget_google_maps_image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjzhb666%2Fget_google_maps_image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjzhb666%2Fget_google_maps_image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjzhb666","download_url":"https://codeload.github.com/bjzhb666/get_google_maps_image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjzhb666%2Fget_google_maps_image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","google","google-maps-api","googlemaps","gps","maps","opensatmap","satellite-imagery"],"created_at":"2026-01-16T17:07:30.619Z","updated_at":"2026-01-16T17:07:31.399Z","avatar_url":"https://github.com/bjzhb666.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenSatMap data acquisition\n\n## Description\nThis code is used to get images from google maps \u003cb\u003egiven a GPS region (lat1, lon1, lat2, lon2) or a center GPS point and a Zoom level.\u003c/b\u003e\n\nThe code is written in Go and uses the Google Maps Static API to get the images.\n\nThis code is used in [OpenSatMap (NeurIPS 2024 D\u0026B Track)](https://github.com/OpenSatMap/OpenSatMap-offical) to collect the data. \n## Usage\nHere are the steps to get the images:\n1. Install Go. The Go version we used is 1.19.\n``` bash\nwget  https://go.dev/dl/go1.19.linux-amd64.tar.gz\n\nrm -rf /usr/local/go \u0026\u0026 tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz\n\nexport PATH=$PATH:/usr/local/go/bin\n```\n2. Download some dependencies.\n``` bash\nGO111MODULE=off go get github.com/ironsublimate/gomapinfer/common\n\nGO111MODULE=off go get github.com/ironsublimate/gomapinfer/googlemaps\n```\n3. Fix the bugs in the code.\nYou should go to path/to/src/github.com/ironsublimate/gomapinfer/googlemaps foloder, modify coords.go, sat.go.\nUse the following code to fix the bugs. (The case of ironsublimate is changed from upper to lower case.)\n``` go\nimport (\n        \"github.com/ironsublimate/gomapinfer/common\"\n)\n```\n\n\n4. Run the code.\n``` bash\nmkdir -p ./data/imagery\n# get images from a GPS region\nGO111MODULE=off go run1_sat.go KEY ./data/imagery\n# get images from a GPS center and a zoom level\nGO111MODULE=off go run1_sat_center.go KEY ./data/imagery\n```\n\n## Acknowledgement\nThe code is based on the code from [roadtracer](https://github.com/mitroadmaps/roadtracer/tree/master/dataset). \nThanks to the authors for sharing the code.\n\n## Citation\n```\n@article{zhao2024opensatmap,\n  title={OpenSatMap: A Fine-grained High-resolution Satellite Dataset for Large-scale Map Construction},\n  author={Zhao, Hongbo and Fan, Lue and Chen, Yuntao and Wang, Haochen and Jin, Xiaojuan and Zhang, Yixin and Meng, Gaofeng and Zhang, Zhaoxiang},\n  journal={arXiv preprint arXiv:2410.23278},\n  year={2024}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjzhb666%2Fget_google_maps_image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjzhb666%2Fget_google_maps_image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjzhb666%2Fget_google_maps_image/lists"}