Skip to content

Kotlin & Cassandra backed server to store geolocation updates, with websocket API

License

Notifications You must be signed in to change notification settings

hhamalai/geo-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassandra backed geolocation server with websocket API.

Cassandra configuration

CREATE KEYSPACE tracker 
    WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
CREATE TABLE tracker.location (
    object_id varchar, 
    event_time timestamp, 
    latitude float, 
    longitude float, 
    velocity float, 
    PRIMARY KEY (object_id, event_time));
CREATE TABLE tracker.chat(
    message_id varchar, 
    event_time timestamp,
    message varchar, 
    PRIMARY KEY (message_id, event_time));

##JSON command messages

Update location

    "lat" :: double // latitude
    "lon" :: double // longitude
    "vel" :: double // velocity
}

About

Kotlin & Cassandra backed server to store geolocation updates, with websocket API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published