Giter VIP home page Giter VIP logo

geofence_converter's Introduction

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

geofence_converter's People

Contributors

asbjorn avatar christian-skjetne avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Forkers

asbjorn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.