{"id":16937632,"url":"https://github.com/martinlindhe/google-geolocate","last_synced_at":"2025-09-20T23:32:17.007Z","repository":{"id":57481834,"uuid":"69579408","full_name":"martinlindhe/google-geolocate","owner":"martinlindhe","description":"Golang client for the Google Maps Geolocation API","archived":false,"fork":false,"pushed_at":"2021-10-21T10:07:38.000Z","size":16,"stargazers_count":32,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-30T08:42:11.784Z","etag":null,"topics":["golang-library","google-geocode","google-geolocation"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martinlindhe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-29T15:10:19.000Z","updated_at":"2024-12-28T08:14:23.000Z","dependencies_parsed_at":"2022-09-02T06:03:27.860Z","dependency_job_id":null,"html_url":"https://github.com/martinlindhe/google-geolocate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinlindhe%2Fgoogle-geolocate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinlindhe%2Fgoogle-geolocate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinlindhe%2Fgoogle-geolocate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinlindhe%2Fgoogle-geolocate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinlindhe","download_url":"https://codeload.github.com/martinlindhe/google-geolocate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233694813,"owners_count":18715507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang-library","google-geocode","google-geolocation"],"created_at":"2024-10-13T20:59:54.370Z","updated_at":"2025-09-20T23:32:11.623Z","avatar_url":"https://github.com/martinlindhe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\n[![GoDoc](https://godoc.org/github.com/martinlindhe/google-geolocate?status.svg)](https://godoc.org/github.com/martinlindhe/google-geolocate)\n\nGolang client for the Google Maps Geocode and Geolocation API:s\n\nhttps://developers.google.com/maps/documentation/geolocation/intro\n\n\n## Usage\n```go\nimport geo \"github.com/martinlindhe/google-geolocate\"\n\nclient := geo.NewGoogleGeo(\"api-key\")\n```\n\n## Geocode\n```go\nres, _ := client.Geocode(\"New York City\")\nfmt.Println(res)\n// Output: \u0026{40.7127837 -74.0059413 New York, NY, USA}\n```\n\n## Reverse geocode\n```go\np := geo.Point{Lat: 40.7127837, Lng: -74.0059413}\nres, _ := client.ReverseGeocode(\u0026p)\nfmt.Println(res)\n// Output: New York City Hall, New York, NY 10007, USA\n```\n\n## Geolocate\n\n```go\nres, _ := client.Geolocate()\nfmt.Println(res)\n// Output: \u0026{ 40.7127837 -74.0059413}\n```\n\n### License\n\nUnder [MIT](LICENSE)\n\nParts of the code was based on [golang-geo](https://github.com/kellydunn/golang-geo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinlindhe%2Fgoogle-geolocate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinlindhe%2Fgoogle-geolocate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinlindhe%2Fgoogle-geolocate/lists"}