Skip to content

densalzmann/hiwi-test

Repository files navigation

Simple GPS data simulator

Description

This is a simple data generator mocking a GPGGA data source. The datasource is then proccessed to an kafka-server (hiwi-test-kafka-1:29092)

Task

Please provide a service that subscribes to the Kafka topic location_topic and visualize the data on a map. A containerized solution is preferred. You may extend the service to provide additional features like filtering, some additional visualization, etc. You may use any programming language, any framework, or any library.

AC:

  • The service needs to use the data from the kafka topic location_topic
  • The service should decode the protobuf data messages
  • The service should be able to visualize the data on a map
  • The service should be containerized

Question to be answered:

  • What object can be expected to move with that trajectory?

Installation

Building the project

  • Dependencies

    • docker
    • protobuf (for decoding the data)
  • Building the project:

docker compose up -d

Usage

Protobuf

  • Install protobuf
sudo apt install -y kafkacat protobuf-compiler
  • Generating python descriptors
protoc -I="." --python_out=src/gen ./location.proto
  • Generating kafkadrop descriptors (Ubuntu)
protoc -o descriptors/location.desc location.proto

Known issues

  • Error while running the kafka broker (i.e. unable to allocate file descriptor table - out of memory):

-> Solution: as often can provide stackoverflow

(!) Please open an issue if you find any problems.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published