All Projects → Qwant → Qwantmaps

Qwant / Qwantmaps

Licence: apache-2.0
Central repository for Qwant Maps resources

Projects that are alternatives of or similar to Qwantmaps

planetiler
Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Stars: ✭ 823 (+244.35%)
Mutual labels:  vector-tiles, osm
Mimirsbrunn
Geocoding and reverse-geocoding (with OSM data)
Stars: ✭ 165 (-30.96%)
Mutual labels:  osm, geocoder
Vectiler
A vector tile, terrain and city 3d model builder and exporter
Stars: ✭ 394 (+64.85%)
Mutual labels:  osm, vector-tiles
qgis-maptiler-plugin
QGIS MapTiler Plugin: vector tiles, basemaps, geocoding, OSM, QuickMapServices
Stars: ✭ 73 (-69.46%)
Mutual labels:  vector-tiles, osm
Osmunda
An offline geocode library for android, powered by SQLite, using osm data. 离线地理编码Android库,基于SQLite,使用开放街道地图数据。
Stars: ✭ 37 (-84.52%)
Mutual labels:  osm, geocoder
gazetteer
OSM ElasticSearch geocoder and addresses exporter
Stars: ✭ 93 (-61.09%)
Mutual labels:  osm, geocoder
Osmscout Server
Maps server providing tiles, geocoder, and router
Stars: ✭ 105 (-56.07%)
Mutual labels:  geocoder, vector-tiles
Libosmscout
Libosmscout is a C++ library for offline map rendering, routing and location lookup based on OpenStreetMap data
Stars: ✭ 159 (-33.47%)
Mutual labels:  osm
Osmdata
R package for downloading OpenStreetMap data
Stars: ✭ 199 (-16.74%)
Mutual labels:  osm
Awesome Openstreetmap
😎 Curated list of awesome OpenSteetMap projects
Stars: ✭ 157 (-34.31%)
Mutual labels:  osm
Osm
General purpose library for reading, writing and working with OpenStreetMap data
Stars: ✭ 153 (-35.98%)
Mutual labels:  osm
Jquery Auto Geocoder
jQuery plug-in to automatically geocode and display a location entered.
Stars: ✭ 227 (-5.02%)
Mutual labels:  geocoder
Ngx Leaflet Starter
A soup of Angular and Leaflet
Stars: ✭ 208 (-12.97%)
Mutual labels:  vector-tiles
Osmdeepod
OSMDeepOD - OpenStreetMap (OSM) and Machine Learning (Deep Learning) based Object Detection from Aerial Imagery (Formerly also known as "OSM-Crosswalk-Detection").
Stars: ✭ 174 (-27.2%)
Mutual labels:  osm
Osm Python Tools
A library to access OpenStreetMap related services
Stars: ✭ 202 (-15.48%)
Mutual labels:  osm
Ol Geocoder
Geocoder Nominatim for OpenLayers
Stars: ✭ 158 (-33.89%)
Mutual labels:  geocoder
Mbtileserver
Basic Go server for mbtiles
Stars: ✭ 218 (-8.79%)
Mutual labels:  vector-tiles
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+721.76%)
Mutual labels:  vector-tiles
Atlas
OSM in memory
Stars: ✭ 172 (-28.03%)
Mutual labels:  osm
Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (-14.23%)
Mutual labels:  geocoder

QwantMaps

Maps | Contribute | About | Frontend | Tile server | Geocoder | Internal API

🗺️ Qwant Maps is a map application that respects your privacy 🔍

Qwant Maps screenshot

Qwant Maps URLs

Qwant Maps provides links you can share with your friends to help them to #SwitchToQwant and #SwitchToOSM. For instance you can:

A routing request

This endpoint points to a routing form and can pre-fill some of the fields.
For instance: https://www.qwant.com/maps/routes/?origin=latlon:48.8459543:2.3714015&destination=latlon:48.8702200:2.27863300&mode[]=walking#map=18.00/48.8459543/2.3714015

The parameters corresponding to this endpoint are the following:

Name Required Description
origin id of some place to use as the starting point
destination id of some place to use as the ending point
mode if you want to pre-select a routing mode in the routing form. One of walking, cycling, driving, public_transport

Architecture

Qwant Maps can be seen as 4 separated components:

  • a tile server,
  • a search engine (geocoder),
  • an API to detail points of interest and places,
  • a front end.

Tile server

A tile server is a service whose job is to give all that is needed to display a fraction of a map.

Qwant Maps provides only vector tiles so the tile server does not serve images (as it is done with raster tiles) but raw data. It is the front end, Erdapfel, that takes the data and renders it into a user browsable map.

The tile server is a combination of 2 great opensource projects:

  • kartotherian, the Wikimedia stack to have a highly available tile server. It is itself based on a number of mapbox components,
  • OpenMapTiles, for their great and flexible tile schema.

OpenMapTiles makes it possible for Qwant Maps to have an easy to define/extend vector tile schema.

All the data (see below) are imported in a PostgreSQL database using mainly imposm. All the world's vector tiles are then generated using kartotherian's tilerator and stored in Cassandra. This enables Qwant Maps to have a fast and scalable way to serve tiles.

Geocoder

The geographical search engine (also called geocoder) used for Qwant Maps is Mimirsbrunn.

Mimirsbrunn is a geocoder based on Elasticsearch and rust components developed by Kisio Digital.

Places API

To get more details on places and Points Of Interest (POIs), Qwant Maps uses an additional API: Idunn, that combines the information in the geocoder with external APIs to format detailed POIs data to display in the front end.

Front end

Qwant Maps's front, Erdapfel, is a Javascript single page app that allows to browse the map, search for places, see your position on the map, etc.

The front end uses Mapbox GL to render the map, using both the tiles from the tile server, and Qwant Maps custom map style.

Data

Tiles data

The main source of data for the tile server is the awesome OpenStreetMap (OSM) data ❤️ but other data like natural earth, better water polygon... are also used.

All the tile's data import process is defined in python scripts.

This tool imports all the data into the PostgreSQL database and runs lots of post-process SQL functions (those functions are defined as postgresql triggers), so they will also be able to run on the OSM updates.

When the data is loaded in PostgreSQL, we use tilerator to generate all the tiles from the zoom level 0 to 14 and store them in Cassandra. This way, when a vector tile is requested to the tiles API kartotherian, no computation needs to be done, only a simple query by id on the highly available Cassandra to get the raw protobuf tiles stored in it.

Geocoder data

The data import process in Mimirsbrunn is defined in a python script.

First, the OSM data is given to Cosmogony which outputs a big JSON file with all the world's administrative regions.

This file is then imported in Mimir by cosmogony2mimir.

We then import addresses using addresses-importer. It downloads datasets of addresses (from OpenAddresses and OpenStreetMap mostly), deduplicate them and then import them into our geocoder using openaddresses2mimir.

The streets are imported afterwards from the OSM pbf file with osm2mimir.

Finally the POIs are extracted from the PostgreSQL database (thus we have a unified POI handling) using Fafnir.

Places API data

Idunn does not need its own data import process, but the API depends on:

  • the data of the geocoder,
  • Wikipedia data, fetched either on the Wikipedia APIs or in a custom Elasticsearch database.
OSM updates

The world keeps moving and OpenStreetMap data is getting better and better every day, so we need to update the data in all our components on a regular basis. The import of the world's data is quite a long process, so after the initial import, a dedicated task is used to read the OSM differential updates and apply the changes in the PostgreSQL database on a daily basis.

Once we have up-to-date data in PostgreSQL, we can import again the geocoder POIs data and regenerate the tiles impacted by the changes.

We update the remaining geocoder data (administrative regions, streets and addresses) on a monthly basis.

Global picture

global architecture

NB: To provide the Qwant Maps service, Qwant hosts instances of the tile server, the geocoder and the Idunn API on its own servers.

Please note that Qwant instances are internal components and are not meant (yet) to be used directly other than as part of Qwant Maps. You can learn more in our Terms of services

How to run

Tiles

To run the tileserver, the easiest way is to use Docker.

The project kartotherian_docker provides a docker-compose with all that is needed.

This repository notably includes glue code to initiate and maintain Qwant Maps tiles:

Geocoder

The repository docker_mimir contains a docker-compose to easily spawn the needed Docker containers and to import the needed data in them.

Places API

Idunn is a custom Python API for Qwant Maps places and features (based on FastAPI).

The readme details the way to run it.

Front end

Erdapfel is a simple node application but you can also use Docker to run it.

You will need to set a few environment variables to link it to the other Qwant Maps components. Check out the readme to know more about its configuration.

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].