{"id":17217132,"url":"https://github.com/akhenakh/mbmatch","last_synced_at":"2025-08-30T12:14:00.896Z","repository":{"id":143101873,"uuid":"142945736","full_name":"akhenakh/mbmatch","owner":"akhenakh","description":"An MBTiles server for PBF, which is also a map matcher.","archived":false,"fork":false,"pushed_at":"2019-10-11T01:58:11.000Z","size":16428,"stargazers_count":39,"open_issues_count":1,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-04T09:02:22.311Z","etag":null,"topics":["geo","go","map","mbtiles","osm"],"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/akhenakh.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,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T01:21:56.000Z","updated_at":"2024-11-22T15:48:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"da102ba1-8be5-46ad-8e4b-124bce5f101e","html_url":"https://github.com/akhenakh/mbmatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akhenakh/mbmatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fmbmatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fmbmatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fmbmatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fmbmatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhenakh","download_url":"https://codeload.github.com/akhenakh/mbmatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fmbmatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272847020,"owners_count":25003115,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["geo","go","map","mbtiles","osm"],"created_at":"2024-10-15T03:43:21.744Z","updated_at":"2025-08-30T12:14:00.876Z","avatar_url":"https://github.com/akhenakh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"mbmatch\n=======\n\nAn MBTiles server for PBF.\n\nPass it an openmaptiles mbtiles file datasource, it can serve the map without an internet connection.\n\nPass environment:\n\n`HOSTNAME` `TILESPATH` `PORT`\n\nor command flags:\n```\nUsage of ./mbmatch:\n  -debug=false: enable debug\n  -enforceReferrer=false: enforce referrer check using tilesURL\n  -port=8000: port to listen for HTTP\n  -tilesPath=\"./hawaii.mbtiles\": mbtiles file path\n  -tilesURL=\"http://127.0.0.1:8000\": the URL to come back at tiles\n```\n\nOpen your browser at http://localhost:7000\n\nIt's mainly use for an [offline car map project](https://blog.nobugware.com/post/2018/my_own_car_system_raspberry_pi_offline_mapping/) but can also serve tiles on the web.\n\n## Installation\n\nYou need the Go compiler installed and set a GOPATH env variable.\n\n```\ngo get github.com/akhenakh/mbmatch/cmd/mbmatch\n${GOPATH}/bin/mbmatch -tilesPath hawaii.mbtiles -tilesURL http://myserver:8000\n```\n\nYou can embed the files in the binary using [packr](http://github.com/gobuffalo/packr)\n```\ngo get -u github.com/gobuffalo/packr/packr\npackr build\n```\n\nor use [a docker image](https://hub.docker.com/r/akhenakh/mbmatch).\n\n```\ndocker run -it --rm -p 8000:8000 -e TILESURL=http://mymap.server.com:8000 -e TILESPATH=/root/hawaii.mbtiles akhenakh/mbmatch:latest  \n```\n\n## Autostart\nEdit `/etc/systemd/system/mbmatch.service`\n\n```\n[Unit]\nDescription=mbmatch\n\n[Service]\nWorkingDirectory=/home/youruser\nExecStart=/home/youruser/mbmatch -tilesPath /home/youruser/north-america.mbtiles \nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\n```\n`systemctl enable mbmatch`\n\n## License \n\nCode is licensed under MIT.\n\nIt contains several assets:\n\nThe Mapbox GL Style JSON file is originally derived from [OSM Bright from Mapbox Open Styles](https://github.com/mapbox/mapbox-gl-styles/blob/master/LICENSE.md). The modified Mapbox GL Style JSON retains the same BSD license.\n\n\u003e Redistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n\u003e * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n* Neither the name of Mapbox nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\n\u003e THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n### Design License\n\nThe look and feel of the OSM liberty map design is also derived (although heavily altered) from [OSM Bright from Mapbox Open Styles](https://github.com/mapbox/mapbox-gl-styles/blob/master/LICENSE.md) which is licensed under the Creative Commons Attribution 3.0 license.\n\n### Icons\n\nOSM Liberty is using the [Maki POI icon set](https://github.com/mapbox/maki/blob/master/LICENSE.txt) which is licensed under CC0 1.0 Universal.\n\n### Fonts\n\nOSM Liberty is using the Roboto font family (Copyright 2011 Google).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fmbmatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhenakh%2Fmbmatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fmbmatch/lists"}