{"id":13414026,"url":"https://github.com/abdullahselek/go-here","last_synced_at":"2025-04-11T05:37:10.983Z","repository":{"id":57496934,"uuid":"195647163","full_name":"abdullahselek/go-here","owner":"abdullahselek","description":"Go client library around the HERE location based APIs.","archived":false,"fork":false,"pushed_at":"2020-06-23T13:20:37.000Z","size":63,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T20:53:18.650Z","etag":null,"topics":["golang","golang-client","golang-library","here-maps-api","heremaps","http-client","location-based-services"],"latest_commit_sha":null,"homepage":"","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/abdullahselek.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":"2019-07-07T12:14:34.000Z","updated_at":"2023-12-03T05:02:25.000Z","dependencies_parsed_at":"2022-09-03T02:30:57.713Z","dependency_job_id":null,"html_url":"https://github.com/abdullahselek/go-here","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/abdullahselek%2Fgo-here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fgo-here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fgo-here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fgo-here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/go-here/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248349730,"owners_count":21089108,"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","golang-client","golang-library","here-maps-api","heremaps","http-client","location-based-services"],"created_at":"2024-07-30T20:01:55.616Z","updated_at":"2025-04-11T05:37:10.964Z","avatar_url":"https://github.com/abdullahselek.png","language":"Go","readme":"# go-here [![codecov](https://codecov.io/gh/abdullahselek/go-here/branch/master/graph/badge.svg)](https://codecov.io/gh/abdullahselek/go-here) [![GoDoc](https://godoc.org/github.com/abdullahselek/go-here/here?status.svg)](https://godoc.org/github.com/abdullahselek/go-here/here) [![Go Report Card](https://goreportcard.com/badge/abdullahselek/go-here)](https://goreportcard.com/report/abdullahselek/go-here)\n\n| Build Type | Status  |\n| ---        | ---     |\n| Linux | [![Build Status](https://travis-ci.org/abdullahselek/go-here.svg?branch=master)](https://travis-ci.org/abdullahselek/go-here) |\n| Windows | [![Build status](https://ci.appveyor.com/api/projects/status/d9g1ehueqau9s57h?svg=true)](https://ci.appveyor.com/project/abdullahselek/go-here) |\n\n**go-here** is a Go client library for the [HERE API](https://developer.here.com). [HERE](https://www.here.com) provides location based services. HERE exposes [rest APIs](https://developer.here.com/develop/rest-apis) and this library is intended to make it even easier for Go programmers to use. Check the usage section or try the examples to see how to access the HERE API.\n\n### Features\n\n* HERE REST API:\n    * Routing\n    * Geocoding\n    * Reverse Geocoding\n    * Geocoding Autocomplete\n    * Places\n\nWill add rest of the apis in time and all contributions are welcome.\n\n## Install\n\n    go get github.com/abdullahselek/go-here/here\n    \nTo install **go-here** and it's dependencies with a single line\n\n    go get -t github.com/abdullahselek/go-here/here\n\n## Documentation\n\nRead [GoDoc](https://godoc.org/github.com/abdullahselek/go-here/here)\n\n## Usage\n\nThe `here` package provides a `Client` for accessing the HERE API and each API service requires an AppID and AppKey. Here are some example requests.\n\n```go\nvar httpClient = \u0026http.Client{\n    Timeout: time.Second * 15,\n}\n// Routing client\nroutingClient := here.NewRoutingClient(httpClient)\nroutingParams := routingClient.Routing.CreateRoutingParams([2]float32{52.5160, 13.3779}, [2]float32{52.5206, 13.3862}, \"appID\", []here.Enum{here.RouteMode.Fastest, here.RouteMode.Car, here.RouteMode.TrafficDefault})\nroutes, httpResponse, err := routingClient.Routing.Route(\u0026routingParams)\n\n// Finding Address in boundingbox\ngeocodingClient := here.NewGeocodingClient(httpClient)\naddressBoundingBoxParams := here.AddressInBoundingBoxParameters{SearchText: \"1 main\", MapView: geocodingClient.Geocoding.CreateMapView([2]float32{42.3902, -71.1293}, [2]float32{42.3312, -71.0228}), Gen: 9, APIKey: \"appKey\"}\ngeocodingResponse, httpResponse, err := geocodingClient.Geocoding.AddressInBoundingBox(\u0026addressBoundingBoxParams)\n\n// Partial address information\npartialAddressInformationParams := here.PartialAddressInformationParameters{HouseNumber: 425, Street: \"randolph\", City: \"chicago\", Country: \"usa\", Gen: 9, APIKey: \"apiKey\"}\ngeocodingResponse, httpResponse, err = geocodingClient.Geocoding.PartialAddressInformation(\u0026partialAddressInformationParams)\n\n// Reverse geocoding for address details\nreverseGeocodingClient := here.NewReverseGeocodingClient(httpClient)\nlocationParameters := reverseGeocodingClient.ReverseGeocoding.CreateAddressFromLocationParameters([2]float32{42.3902, -71.1293}, 250, here.ReverseGeocodingMode.RetrieveAddresses, 1, 9, \"apiKey\")\ngeocodingResponse, httpResponse, err = reverseGeocodingClient.ReverseGeocoding.AddressFromLocation(\u0026locationParameters)\n\n// Reverse geocoding for landmark details\nlandmarkParameters := reverseGeocodingClient.ReverseGeocoding.CreateLandmarksParameters([2]float32{42.3902, -71.1293}, 1, 9, \"apiKey\")\ngeocodingResponse, httpResponse, err = reverseGeocodingClient.ReverseGeocoding.Landmarks(\u0026landmarkParameters)\n\n// Complete location details\nautocompleteGeocodingClient := here.NewAutocompleteGeocodingClient(httpClient)\nsuggestionsParameters := autocompleteGeocodingClient.AutocompleteGeocoding.CreateDetailsForSuggestionParameters(\"Pariser 1 Berl\", \"apiKey\")\nautocompleteGeocodingResponse, httpResponse, err := autocompleteGeocodingClient.AutocompleteGeocoding.DetailsForSuggestion(\u0026suggestionsParameters)\n```\n\n## Roadmap\n\n* Add new clients for other endpoints.\n* ~~Use parameter structs on functions.~~\n\n## License\n\n[MIT License](https://github.com/abdullahselek/go-here/blob/master/LICENSE)\n","funding_links":[],"categories":["Third-party APIs","第三方api","第三方API","第三方API`第三方API 汇总`","Utility"],"sub_categories":["HTTP Clients","实用程序/Miscellaneous","查询语","Utility/Miscellaneous","Fail injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fgo-here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Fgo-here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fgo-here/lists"}