GithubHelp home page GithubHelp logo

mnaveenchary / killrtaxi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victorcouste/killrtaxi

0.0 0.0 1.0 2.2 MB

A Web demo application using Patrick Callaghan DataStax/Cassandra Taxi API https://github.com/PatrickCallaghan/datastax-taxi-app

Python 6.94% CSS 89.00% HTML 4.07%

killrtaxi's Introduction

killrtaxi

alt tag

This is a Web demo application using Patrick Callaghan DataStax/Cassandra demo API found here https://github.com/PatrickCallaghan/datastax-taxi-app

As Patrick says "This demo traces moving vehicles as they pass through geohash tiles. It also keeps track of a vehicle movements on a day to day basis. Similar to a vessel tracking or taxi application."

This Web application use Python Flask Web framework and Flask-GoogleMap extension.

Installation

Running

1/ Start DataStax Enterprise with Search activated

Documentation here http://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/srch/srchInstall.html

2/ Start datastax-taxi-app API

To continuously update the locations of the vehicles run

mvn clean compile exec:java -Dexec.mainClass="com.datastax.taxi.Main" -DcontactPoints=localhost

To start the API web server, in another terminal run

mvn jetty:run

To test your installation and run,for example find all movements of a vehicle use http://localhost:8080/datastax-taxi-app/rest/getmovements/{vehicle}/{date} e.g.

http://localhost:8080/datastax-taxi-app/rest/getmovements/1/20160112

Or

select * from vehicle where vehicle = '1' and day='20160112';

3/ Start the Flask Web app

In the killrtaxi directory run

python killrtaxi.py

Now you must be able to go to http://127.0.0.1:5000/ and play with the application

alt tag

killrtaxi's People

Contributors

victorcouste avatar

Forkers

naveenpython

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.