Simple map with basic features based on osm
Find a file
Tom Darboux 6dba1d6f9b
Internationalization and basic annotation edition (#7)
* Start internationalization

* Start annotation edition + bootstrap locales

* Update annotations places websocket side

* Add internationalization

---------

Co-authored-by: tjiho <tjiho@ppsfleet.navy>
2025-05-09 00:42:41 +02:00
.fleet Wip itinerary 2023-01-02 18:36:01 +01:00
simplestreetmap Internationalization and basic annotation edition (#7) 2025-05-09 00:42:41 +02:00
websockets_server Internationalization and basic annotation edition (#7) 2025-05-09 00:42:41 +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
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
README.md Improve readme 2024-07-15 00:00:21 +02: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

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