Simple map with basic features based on osm
Go to file
tjiho f7df4868e8 Linter code 2024-07-15 00:01:10 +02:00
.fleet Wip itinerary 2023-01-02 18:36:01 +01:00
simplestreetmap Linter code 2024-07-15 00:01:10 +02:00
websockets Fix loading read only map 2024-05-26 02:28:51 +02:00
.editorconfig Wip itinerary 2023-01-02 18:36:01 +01:00
.gitignore Add basic collaborative map edition (#6) 2023-12-23 02:40:46 +01:00
LICENSE Initial commit 2019-09-22 01:35:15 +02:00
README.md Improve readme 2024-07-15 00:00:21 +02:00
package.json Add basic collaborative map edition (#6) 2023-12-23 02:40:46 +01:00
pyproject.toml setup pyramid 2022-11-01 15:31:38 +01:00
setup.cfg Close properly bdd connection when WS is closed 2024-05-25 23:52:28 +02:00
todo.md Clean new code architecture 2022-02-19 23:36:29 +01:00

README.md

Simplestreetmap

Collaborative map interface for OpenStreetMap with joint editing capabilities, location search, and route planning functionalities

A demo is available at https://beta.maps.ppsfleet.navy

screenshot

Installation

Edit simplestreetmap/config.py with your own search, mapbox/maplibre style url and the path to maplibre library.

You can add other data overlay with the key overlays:

'overlays': [
    {
        'tiles_url': 'some_tiles_server',
        'source_layer': 'public.cameras',
        'name': 'cameras'
    }
],

Then do a venv:
python3 -m venv env; source env/bin/activate
and install the project
pip install .

Init database for websocket

python3 websockets/main.py setup

Run

Main server

gunicorn -b 127.0.0.1:8088 --workers 4 'simplestreetmap:make_app()'

Websocket

python3 websockets/main.py

Install a search and reverse server:

I use ADDOK: https://addok.readthedocs.io/en/latest/, it's quite easy to install and works very well with french addresses.

There are other. Qwant maps uses https://github.com/CanalTP/mimirsbrunn

Serving tiles

For a small server, there is https://openmaptiles.org/. Qwant maps uses a more complex stack, see https://github.com/Qwant/qwantmaps

If you don't want to host tiles yourself, maptiler or mapbox offer hosting solutions.

You can use ppsfleet tiles for testing, but only for testing.

Frontend Dev

Format frontend code: npx standard --fix