All Projects → akhenakh → mbmatch

akhenakh / mbmatch

Licence: MIT License
An MBTiles server for PBF, which is also a map matcher.

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to mbmatch

Mapsui
Mapsui is a .NET Map component for WPF, Xamarin.Forms, Xamarin.Android, Xamarin.iOS and UWP
Stars: ✭ 447 (+1214.71%)
Mutual labels:  map, osm, geo
openfairdb
Open Fair DB is the CreativCommons Backend of Kartevonmorgen.org
Stars: ✭ 53 (+55.88%)
Mutual labels:  map, osm, geo
Aphotomanager
Manage local photos on Android: gallery, geotag with photomap, privacy, tags, find, sort, view, copy, send, ... .
Stars: ✭ 164 (+382.35%)
Mutual labels:  map, osm
Awesome Gis
😎Awesome GIS is a collection of geospatial related sources, including cartographic tools, geoanalysis tools, developer tools, data, conference & communities, news, massive open online course, some amazing map sites, and more.
Stars: ✭ 2,582 (+7494.12%)
Mutual labels:  map, geo
Locationpicker
iOS location picker view controller
Stars: ✭ 226 (+564.71%)
Mutual labels:  map, geo
PHPCoord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points
Stars: ✭ 78 (+129.41%)
Mutual labels:  map, geo
Openrailwaymap
An OpenStreetMap-based project for creating a map of the world's railway infrastructure.
Stars: ✭ 150 (+341.18%)
Mutual labels:  map, geo
AndroidOfflineMapLibrary
Offline OpenStreet Map Library (No Internet Required) You dont have to even one-time connect!
Stars: ✭ 16 (-52.94%)
Mutual labels:  map, osm
Leaflet Ng2
Angular.io integration of Leaflet
Stars: ✭ 66 (+94.12%)
Mutual labels:  map, geo
d3-geomap
A library for creating geographical maps based on D3.js
Stars: ✭ 124 (+264.71%)
Mutual labels:  map, geo
osm flutter
OpenStreetMap plugin for flutter
Stars: ✭ 121 (+255.88%)
Mutual labels:  map, osm
o.map
Open Street Map app - KaiOS
Stars: ✭ 51 (+50%)
Mutual labels:  map, osm
Openlayers Editor
OpenLayers Editor
Stars: ✭ 138 (+305.88%)
Mutual labels:  map, geo
Geo Data Viewer
🗺️ Geo Data Viewer w/0 Py 🐍 || pyWidgets ⚙️ || pandas 🐼 || @reactjs ⚛️ required to gen. some snazzy maps 🗺️ with keplerGL ...
Stars: ✭ 115 (+238.24%)
Mutual labels:  map, geo
Libosmscout
Libosmscout is a C++ library for offline map rendering, routing and location lookup based on OpenStreetMap data
Stars: ✭ 159 (+367.65%)
Mutual labels:  map, osm
Cyclosm Cartocss Style
Cycle oriented CartoCSS style.
Stars: ✭ 109 (+220.59%)
Mutual labels:  map, osm
Brutile
BruTile is a .NET library to access tile services like those of OpenStreetMap, MapBox or GeodanMaps.
Stars: ✭ 203 (+497.06%)
Mutual labels:  map, osm
Highcharts China Geo
Highcharts 中国地图,Highcharts 中国省市地图,Highcharts China Map,南海诸岛geo
Stars: ✭ 29 (-14.71%)
Mutual labels:  map, geo
Tiledmapview
Tiled map loader for Android , based on the pyramid model, supports a variety of projections, including Web Mercator projection, latitude and longitude projection and custom projection; supports locating, adding layers and overlays. Android瓦片地图加载控件,基于金字塔模型,支持多种投影,包括Web墨卡托投影,经纬度直投及自定义投影等;支持定位,添加图层和覆盖物。
Stars: ✭ 45 (+32.35%)
Mutual labels:  map, geo
Go Staticmaps
A go (golang) library and command line tool to render static map images using OpenStreetMap tiles.
Stars: ✭ 246 (+623.53%)
Mutual labels:  map, geo

mbmatch

An MBTiles server for PBF.

Pass it an openmaptiles mbtiles file datasource, it can serve the map without an internet connection.

Pass environment:

HOSTNAME TILESPATH PORT

or command flags:

Usage of ./mbmatch:
  -debug=false: enable debug
  -enforceReferrer=false: enforce referrer check using tilesURL
  -port=8000: port to listen for HTTP
  -tilesPath="./hawaii.mbtiles": mbtiles file path
  -tilesURL="http://127.0.0.1:8000": the URL to come back at tiles

Open your browser at http://localhost:7000

It's mainly use for an offline car map project but can also serve tiles on the web.

Installation

You need the Go compiler installed and set a GOPATH env variable.

go get github.com/akhenakh/mbmatch/cmd/mbmatch
${GOPATH}/bin/mbmatch -tilesPath hawaii.mbtiles -tilesURL http://myserver:8000

You can embed the files in the binary using packr

go get -u github.com/gobuffalo/packr/packr
packr build

or use a docker image.

docker run -it --rm -p 8000:8000 -e TILESURL=http://mymap.server.com:8000 -e TILESPATH=/root/hawaii.mbtiles akhenakh/mbmatch:latest  

Autostart

Edit /etc/systemd/system/mbmatch.service

[Unit]
Description=mbmatch

[Service]
WorkingDirectory=/home/youruser
ExecStart=/home/youruser/mbmatch -tilesPath /home/youruser/north-america.mbtiles 
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

systemctl enable mbmatch

License

Code is licensed under MIT.

It contains several assets:

The Mapbox GL Style JSON file is originally derived from OSM Bright from Mapbox Open Styles. The modified Mapbox GL Style JSON retains the same BSD license.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • 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.
  • 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.

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.

Design License

The look and feel of the OSM liberty map design is also derived (although heavily altered) from OSM Bright from Mapbox Open Styles which is licensed under the Creative Commons Attribution 3.0 license.

Icons

OSM Liberty is using the Maki POI icon set which is licensed under CC0 1.0 Universal.

Fonts

OSM Liberty is using the Roboto font family (Copyright 2011 Google).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].