{"id":16607113,"url":"https://github.com/ryankurte/go-mapbox","last_synced_at":"2025-07-07T06:36:33.326Z","repository":{"id":18735216,"uuid":"85148164","full_name":"ryankurte/go-mapbox","owner":"ryankurte","description":"Golang Mapbox API module","archived":false,"fork":false,"pushed_at":"2022-01-04T05:52:04.000Z","size":94,"stargazers_count":39,"open_issues_count":5,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T04:34:08.013Z","etag":null,"topics":["api","golang","mapbox"],"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/ryankurte.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":"2017-03-16T03:26:11.000Z","updated_at":"2025-01-16T13:38:47.000Z","dependencies_parsed_at":"2022-07-25T06:45:05.803Z","dependency_job_id":null,"html_url":"https://github.com/ryankurte/go-mapbox","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ryankurte/go-mapbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryankurte%2Fgo-mapbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryankurte%2Fgo-mapbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryankurte%2Fgo-mapbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryankurte%2Fgo-mapbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryankurte","download_url":"https://codeload.github.com/ryankurte/go-mapbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryankurte%2Fgo-mapbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264028843,"owners_count":23546348,"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":["api","golang","mapbox"],"created_at":"2024-10-12T01:11:39.489Z","updated_at":"2025-07-07T06:36:33.310Z","avatar_url":"https://github.com/ryankurte.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-mapbox\n\nMapbox API wrappers for Golang\n\n[![Documentation](https://img.shields.io/badge/docs-godoc-blue.svg)](https://godoc.org/github.com/ryankurte/go-mapbox/lib)\n[![GitHub tag](https://img.shields.io/github/tag/ryankurte/go-mapbox.svg)](https://github.com/ryankurte/go-mapbox)\n[![Build Status](https://travis-ci.org/ryankurte/go-mapbox.svg?branch=master)](https://travis-ci.org/ryankurte/go-mapbox)\n\nSee [here](https://golanglibs.com/top?q=mapbox) for other golang/mapbox projects.\n\n## Status\n\nVery early WIP, pull requests and issues are most welcome. See [lib/geocode/](lib/geocode) or [lib/directions/](lib/directions) for an example module to mimic.\n\nBecause Travis-CI does not expose the build environment to untrusted branches (ie. Pull Requests) tests have to be manually prompted by a repository admin then force merged. Don't panic when your local tests pass but travis fails with \"Mapbox API token not found\", we will manually run them as soon as possible. See issue [#10](https://github.com/ryankurte/go-mapbox/issues/10) for more information.\n\n### Modules\n\n- [X] Geocoding\n- [X] Directions\n- [X] Directions Matrix\n- [X] Map Matching\n- [ ] Styles\n- [X] Maps\n- [ ] Static\n- [ ] Datasets\n\n## Examples\n\n### Initialisation\n\n```go\n// Import the core module (and any required APIs)\nimport (\n    \"gopkg.in/ryankurte/go-mapbox.v0/lib\"\n    \"gopkg.in/ryankurte/go-mapbox.v0/lib/base\"\n)\n\n// Fetch token from somewhere\ntoken := os.Getenv(\"MAPBOX_TOKEN\")\n\n// Create new mapbox instance\nmapBox := mapbox.NewMapbox(token)\n\n```\n\n### Map API\n``` go\nimport (\n    \"gopkg.in/ryankurte/go-mapbox.v0/lib/maps\"\n)\n\nimg, err := mapBox.Maps.GetTiles(maps.MapIDSatellite, 1, 0, 0, maps.MapFormatJpg90, true)\n```\n\n### Geocoding\n\n```go\nimport (\n    \"gopkg.in/ryankurte/go-mapbox.v0/lib/geocode\"\n)\n\n// Forward Geocoding\nvar forwardOpts geocode.ForwardRequestOpts\nforwardOpts.Limit = 1\n\nplace := \"2 lincoln memorial circle nw\"\n\nforward, err := mapBox.Geocode.Forward(place, \u0026forwardOpts)\n\n\n// Reverse Geocoding\nvar reverseOpts geocode.ReverseRequestOpts\nreverseOpts.Limit = 1\n\nloc := \u0026base.Location{72.438939, 34.074122}\n\nreverse, err := mapBox.Geocode.Reverse(loc, \u0026reverseOpts)\n\n```\n\n### Directions\n\n```go\nimport (\n    \"gopkg.in/ryankurte/go-mapbox.v0/lib/directions\"\n)\n\nvar directionOpts directions.RequestOpts\n\nlocs := []base.Location{{-122.42, 37.78}, {-77.03, 38.91}}\n\ndirections, err := mapBox.Directions.GetDirections(locs, directions.RoutingCycling, \u0026directionOpts)\n\n```\n\n## Layout\n\n- [lib/base](lib/base/) contains a common base for API modules\n- [lib/maps](lib/maps/) contains the maps API module\n- [lib/directions](lib/directions/) contains the directions API module\n- [lib/geocode](lib/geocode/) contains the geocoding API module\n\n---\n\nIf you have any questions, comments, or suggestions, feel free to open an issue or a pull request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryankurte%2Fgo-mapbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryankurte%2Fgo-mapbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryankurte%2Fgo-mapbox/lists"}