{"id":22339708,"url":"https://github.com/ringsaturn/am","last_synced_at":"2025-03-26T09:13:42.919Z","repository":{"id":198385780,"uuid":"699425848","full_name":"ringsaturn/am","owner":"ringsaturn","description":"WIP: Apple Maps Server API SDK for Go","archived":false,"fork":false,"pushed_at":"2024-03-14T00:46:00.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:44:54.264Z","etag":null,"topics":["apple-maps-api"],"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/ringsaturn.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-02T15:56:35.000Z","updated_at":"2023-10-07T06:49:09.000Z","dependencies_parsed_at":"2024-03-14T01:58:27.062Z","dependency_job_id":null,"html_url":"https://github.com/ringsaturn/am","commit_stats":null,"previous_names":["ringsaturn/am"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringsaturn%2Fam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringsaturn%2Fam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringsaturn%2Fam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ringsaturn%2Fam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ringsaturn","download_url":"https://codeload.github.com/ringsaturn/am/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623078,"owners_count":20645680,"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":["apple-maps-api"],"created_at":"2024-12-04T07:09:11.725Z","updated_at":"2025-03-26T09:13:42.880Z","avatar_url":"https://github.com/ringsaturn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `am`: Apple Maps Server API SDK for Go [![Go Reference](https://pkg.go.dev/badge/github.com/ringsaturn/am.svg)](https://pkg.go.dev/github.com/ringsaturn/am)\n\nThis Go library provides a comprehensive interface for interacting with various\nApple Maps APIs. It allows users to perform operations like geocoding, reverse\ngeocoding, searching for places, autocomplete search, getting directions, and\nestimating arrival times.\n\n```bash\ngo install github.com/ringsaturn/am\n```\n\n## Features\n\n- **Token Management**: Easily manage your Apple Maps API tokens with built-in\n  support for token refreshing and storage.\n- **Geocoding**: Convert addresses into geographic coordinates.\n- **Reverse Geocoding**: Convert geographic coordinates into human-readable\n  addresses.\n- **Search**: Search for places that match specific criteria.\n- **Autocomplete Search**: Autocomplete search for places based on partial\n  input.\n- **Directions**: Get directions and estimated travel times between locations.\n- **ETA**: Determine estimated arrival times and distances to destinations.\n\n## Installation\n\nTo use this library, first ensure you have Go installed on your system. Then,\nyou can install it using `go get`:\n\n```bash\ngo get -u github.com/ringsaturn/am\n```\n\n## Usage\n\n```go\nclient := am.NewClient(\"your_auth_token\")\nclient.Directions(context.Background(), \u0026am.DirectionsRequest{\n  Origin: am.OneOfLoc{\n    Location: \u0026am.Location{\n      Latitude:  37.331871,\n      Longitude: -122.029626,\n    },\n  },\n  Destination: am.OneOfLoc{\n    Address: \"1 Infinite Loop, Cupertino, CA 95014\",\n  },\n  ArrivalDate:             time.Now().Add(time.Hour * 2),\n  DepartureDate:           time.Now(),\n  Avoid:                   []am.DirectionsAvoid{am.DirectionsAvoidTolls},\n  Lang:                    language.AmericanEnglish,\n  RequestsAlternateRoutes: true,\n  SearchLocation: am.Location{\n    Latitude:  37.331871,\n    Longitude: -122.029626,\n  },\n  SearchRegion: am.Region{\n    EastLongitude: -122.029626,\n    NorthLatitude: 37.331871,\n    SouthLatitude: 37.331871,\n    WestLongitude: -122.029626,\n  },\n  UserLocation: am.Location{\n    Latitude:  37.331871,\n    Longitude: -122.029626,\n  },\n})\n```\n\nFor more usage examples, see the\n[`client_exmaple_test.go`](./client_exmaple_test.go).\n\n## License\n\nThis library is distributed under the [MIT](./LICENSE), see LICENSE for more\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringsaturn%2Fam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fringsaturn%2Fam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringsaturn%2Fam/lists"}