{"id":13832228,"url":"https://github.com/googlemaps/google-maps-services-go","last_synced_at":"2025-06-22T03:41:50.002Z","repository":{"id":25726993,"uuid":"29164077","full_name":"googlemaps/google-maps-services-go","owner":"googlemaps","description":"Go client library for Google Maps API Web Services","archived":false,"fork":false,"pushed_at":"2025-03-09T02:21:48.000Z","size":737,"stargazers_count":776,"open_issues_count":16,"forks_count":222,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-06-12T01:03:59.267Z","etag":null,"topics":["client-library","golang","google-maps"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/googlemaps.github.io/maps","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/googlemaps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-13T00:21:15.000Z","updated_at":"2025-05-31T05:33:02.000Z","dependencies_parsed_at":"2023-11-07T11:31:26.173Z","dependency_job_id":"d8300d3f-698f-4f49-b9ca-a6e9816b94bf","html_url":"https://github.com/googlemaps/google-maps-services-go","commit_stats":{"total_commits":417,"total_committers":74,"mean_commits":5.635135135135135,"dds":0.5083932853717026,"last_synced_commit":"51148b6485bf66f1a709b488f3338d19afc4063c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/googlemaps/google-maps-services-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlemaps","download_url":"https://codeload.github.com/googlemaps/google-maps-services-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261232844,"owners_count":23128169,"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":["client-library","golang","google-maps"],"created_at":"2024-08-04T10:01:56.231Z","updated_at":"2025-06-22T03:41:44.991Z","avatar_url":"https://github.com/googlemaps.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"Go Client for Google Maps Services\n==================================\n\n[![GoDoc](https://godoc.org/googlemaps.github.io/maps?status.svg)](https://godoc.org/googlemaps.github.io/maps)\n[![Go Report Card](https://goreportcard.com/badge/github.com/googlemaps/google-maps-services-go)](https://goreportcard.com/report/github.com/googlemaps/google-maps-services-go)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/googlemaps/google-maps-services-go)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Description\n\nUse Go? This library brings many [Google Maps Platform Web Services APIs] to your Go application.\n\nThe Go Client for Google Maps Services is a Go Client library for the following Google Maps Platform\nAPIs:\n\n- [Directions API]\n- [Distance Matrix API]\n- [Elevation API]\n- [Geocoding API]\n- [Places API]\n- [Roads API]\n- [Time Zone API]\n- [Maps Static API]\n\n\u003e [!TIP]\n\u003e See the [Google Maps Platform Cloud Client Library for Go](https://github.com/googleapis/google-cloud-go/tree/main/maps) for our newer APIs\n\u003e including Address Validation API, Datasets API, Fleet Engine, new Places API, and Routes API.\n\n## Requirements\n\n- Go 1.7 or later.\n- A Google Maps Platform [API key] from a project with the APIs below enabled.\n\n\u003e [!IMPORTANT]  \n\u003e This key should be kept secret on your server.\n\n## Installation\n\nTo install the Go Client for Google Maps Services, please execute the following `go get` command.\n\n```bash\ngo get googlemaps.github.io/maps\n```\n\n## Documentation\n\nView the [reference documentation](https://godoc.org/googlemaps.github.io/maps).\n\nAdditional documentation about the APIs is available at:\n\n- [Directions API]\n- [Distance Matrix API]\n- [Elevation API]\n- [Geocoding API]\n- [Places API]\n- [Time Zone API]\n- [Roads API]\n- [Maps Static API]\n\n## Usage\n\nSample usage of the Directions API with an API key:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/kr/pretty\"\n\t\"googlemaps.github.io/maps\"\n)\n\nfunc main() {\n\tc, err := maps.NewClient(maps.WithAPIKey(\"Insert-API-Key-Here\"))\n\tif err != nil {\n\t\tlog.Fatalf(\"fatal error: %s\", err)\n\t}\n\tr := \u0026maps.DirectionsRequest{\n\t\tOrigin:      \"Sydney\",\n\t\tDestination: \"Perth\",\n\t}\n\troute, _, err := c.Directions(context.Background(), r)\n\tif err != nil {\n\t\tlog.Fatalf(\"fatal error: %s\", err)\n\t}\n\n\tpretty.Println(route)\n}\n```\n\nSample usage of the Geocoding API with an API key to get an [Address Descriptor](https://developers.google.com/maps/documentation/geocoding/address-descriptors/requests-address-descriptors):\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/kr/pretty\"\n\t\"googlemaps.github.io/maps\"\n)\n\nfunc main() {\n\tc, err := maps.NewClient(maps.WithAPIKey(\"Insert-API-Key-Here\"))\n\tif err != nil {\n\t\tlog.Fatalf(\"fatal error: %s\", err)\n\t}\n\tr := \u0026maps.GeocodingRequest{\n\t\tLatLng: \u0026LatLng{Lat: 40.714224, Lng: -73.961452},\n\t\tEnableAddressDescriptor: True\n\t}\n\treverseGeocodingResponse, _, err := c.ReverseGeocode(context.Background(), r)\n\tif err != nil {\n\t\tlog.Fatalf(\"fatal error: %s\", err)\n\t}\n\n\tpretty.Println(reverseGeocodingResponse)\n}\n```\n\n## Features\n\n### Rate limiting\n\nNever sleep between requests again! By default, requests are sent at the expected rate limits for\neach web service, typically 50 queries per second for free users. If you want to speed up or slow\ndown requests, you can do that too, using `maps.NewClient(maps.WithAPIKey(apiKey), maps.WithRateLimit(qps))`.\n\n### Native types\n\nNative objects for each of the API responses.\n\n### Monitoring\n\nIt's possible to get metrics for status counts and latency histograms for monitoring.\nUse `maps.WithMetricReporter(metrics.OpenCensusReporter{})` to log metrics to OpenCensus,\nand `metrics.RegisterViews()` to make the metrics available to be exported.\nOpenCensus can export these metrics to a [variety of monitoring services](https://opencensus.io/exporters/).\nYou can also implement your own metric reporter instead of using the provided one.\n\n## Terms of Service\n\nThis library uses Google Maps Platform services, and any use of Google Maps Platform is subject to the [Terms of Service](https://cloud.google.com/maps-platform/terms).\n\nFor clarity, this library, and each underlying component, is not a Google Maps Platform Core Service.\n\n## Support\n\nThis library is offered via an open source license. It is not governed by the Google Maps Platform Support [Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg), the [SLA](https://cloud.google.com/maps-platform/terms/sla), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service).\n\nThis library adheres to [semantic versioning](https://semver.org/) to indicate when backwards-incompatible changes are introduced.\n\nIf you find a bug, or have a feature request, please [file an issue][issues] on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels](https://developers.google.com/maps/developer-community). If you'd like to contribute, please check the [Contributing guide][contrib].\n\nYou can also discuss this library on our [Discord server](https://discord.gg/hYsWbmk).\n\n[API key]: https://developers.google.com/maps/documentation/places/web-service/get-api-key\n\n[Google Maps Platform Web Services APIs]: https://developers.google.com/maps/apis-by-platform#web_service_apis\n[Directions API]: https://developers.google.com/maps/documentation/directions/\n[Distance Matrix API]: https://developers.google.com/maps/documentation/distancematrix/\n[Elevation API]: https://developers.google.com/maps/documentation/elevation/\n[Geocoding API]: https://developers.google.com/maps/documentation/geocoding/\n[Places API]: https://developers.google.com/places/web-service/\n[Roads API]: https://developers.google.com/maps/documentation/roads/\n[Time Zone API]: https://developers.google.com/maps/documentation/timezone/\n[Maps Static API]: https://developers.google.com/maps/documentation/maps-static/\n\n[issues]: https://github.com/googlemaps/google-maps-services-go/issues\n[contrib]: https://github.com/googlemaps/google-maps-services-go/blob/master/CONTRIB.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-go/lists"}