Skip to content

NPRA/geofence_converter

Repository files navigation

geofence broker

description

Mainly built for internal SVV usage. The purpose is to periodically get a collection of road objects of a certain type that contains a POLYGON. In this case we are using that polygon as a "geofence" which we cache / store internally.

All "geofences" that are added, changed or deleted shall be forwarded to a custom AMQP server for further processing.

Simple, yeah?

Example

Help:

$ python client.py --help

configuration file:

$ cat config.yml
 # config file
broker_url: amqps://url.to.my.amqp.server.com:5671
sender: send_queue
receiver: recv_queue
ssl_keyfile: certs/my_priv.key
ssl_certfile: certs/my_crt.cert
username: user1
password: VerySecret
verbose: true
# Timeout in seconds. How often to check for new geofences from NVDB
timeout: 300

Run with config file:

$ python client.py -conf ./config.yml

Technology?

Python ofcourse ;)

Build and start docker container

  1. First create your config file: config.yml
  2. Then build the docker container
$ sudo docker-compose build
  1. Start the container (in background - if not, skip the '-d')
$ sudo docker-compose up -d
  1. Inspect the logs by running
$ sudo docker-compose logs

About

Extract geofence objects from NVDB (https://www.vegvesen.no/fag/teknologi/Nasjonal+vegdatabank) and forward them to 3rd party interchange (AMQP)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published