Giter Club home page Giter Club logo

londonbikes's Introduction

Londonbikes

Tested on Python 3.6.8

Search london bikepoints by place name

$./londonbikes search ""
Please specify a search term

$./londonbikes search Toronto
No bikepoints named Toronto found

$./londonbikes search "Canary Wharf"
Id                  Name                                              Latitude    Longitude
BikePoints_448      Fisherman's Walk West, Canary Wharf               51.506230   -0.022960
BikePoints_494      South Quay East, Canary Wharf                     51.501960   -0.016251
BikePoints_532      Jubilee Plaza, Canary Wharf                       51.503570   -0.020068
BikePoints_551      Import Dock, Canary Wharf                         51.505772   -0.016460
BikePoints_556      Heron Quays DLR, Canary Wharf                     51.502661   -0.021596
BikePoints_570      Upper Bank Street, Canary Wharf                   51.503083   -0.017676
BikePoints_811      Westferry Circus, Canary Wharf                    51.505703   -0.027772

Search london bikepoints by lat, lon and radius

$ ./londonbikes search 51.53 -0.09 2
No bikepoints found with 51.53 meters of -0.09 lat, 2 lon

$ ./londonbikes search 51.53 -0.09 sushan
The search request is invalid

$ ./londonbikes search 51.53 -0.09 250
Id                  Name                                              Latitude    Longitude   Distance
BikePoints_63       Murray Grove , Hoxton                             51.530890   -0.089782   100.192250
BikePoints_50       East Road, Hoxton                                 51.528673   -0.087459   229.697289

Search london bikepoints by id

$ ./londonbikes id ""
Please specify a bike point id

$ ./londonbikes id "BikePoints_50"
Name                          Latitude            Longitude           Num Bikes           Empty Docks
East Road, Hoxton             51.528673           -0.087459           5                   19

$ ./londonbikes id "BikePoints_5023432"
Bike point id BikePoints_5023432 not recognised

TODO:

  1. Clean up loops
  2. Improve variable names
  3. Use argparse module

londonbikes's People

Contributors

mimoxyz avatar

Watchers

 avatar

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.