Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Amsterdam/waarnemingen-boten

Repository files navigation

Waarnemingen boten

This project is part of the waarnemingen cluster. All data related to boats should be imported and exposed here through an API (API not yet implemented).

Project architecture

This project follows the setup used in multiple projects and is described here: https://github.com/Amsterdam/opdrachten_team_dev.

Waternet

Currently Waternet is the only datasource we are retrieving data from. We retrieve AIS (automatic identification system) data from ships around Amsterdam, at a specific bounding box, every x amount of minutes.

Getting started

Start the database

docker-compose up -d database

To scrape the waternet API locally first add the user credentials in your src/.env file like so:

WATERNET_USERNAME=<username>
WATERNET_PASSWORD=<password>

Then run the script through docker

docker-compose run job python manage.py scrape_waternet

Now you have a snapshot of the api at the moment the script ran. To import (unpack) the snapshot run the import script:

docker-compose run job python manage.py import_waternet

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

0 stars

Watchers

4 watching

Forks

Packages

 
 
 

Contributors