GithubHelp home page GithubHelp logo

gschmutz / various-demos Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 17.0 135.43 MB

Various Demos mostly based on docker environments

Java 75.77% Shell 4.31% JavaScript 0.07% PHP 1.23% C 16.33% M4 0.65% Python 0.92% Groovy 0.46% Dockerfile 0.25% Roff 0.01%

various-demos's Issues

How to calculate that a vehicle is ENTERING or LEAVING a geofence using KSQL?

  1. Using KSQL, How to calculate that a vehicle is ENTERING or LEAVING a geofence? Can you please explain with the help of example KSQL queries?

Reading through the readme.md on the path https://github.com/gschmutz/various-demos/tree/master/kafka-geofencing did not give much idea about the same. Although, a method to calculate ENTERING/LEAVING is present in the https://github.com/gschmutz/various-demos/blob/master/kafka-geofencing/kafka-streams/geo-utils/src/main/java/com/thyssenkrupp/tkse/GeoFenceUtil.java file.

Calculating INSIDE or OUTSIDE seemed very intuitive using the geofence UDF in KSQL queries but how to store the 'statusBefore' value and use it in the UDF again to calculate ENTERING/LEAVING is not clear.

  1. Also, please add details about the LASTVALUE functions used in the previously mentioned readme.md file. Is it a UDF?

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.