Giter VIP home page Giter VIP logo

gta_battery_parking's Introduction

Installation and use

# Install dependencies
$ pip install -r requirements

# Run the script, which outputs an analysis to stdout, and also generates `better.kml`, which is meant to be added as overlay to a Google Map
$ ./find_parking_meters.py

Definitions of geographic boundaries

Definitions are drawn using this polyline tool website, which allows one to draw polyline definitions on a Google Maps-like map- https://www.keene.edu/campus/maps/tool/

It produces two things: a list of lat/lon coordinates, and a JSON containing those coordinates.

That format is preserved when storing those definitions in this project, because: the JSON is imported by find_parking_meters.py (via load_boundary_file() from utils.py, which retrieves only the JSON.) The lat/lon list super-useful whenever the boundaries need adjusting. The list can be copy-pasted directly to the import box of the Keene State Polyline tool.

Incorporating SF Data

Much of San Francisco's data regime is provided as single tables that can be exported as TSV. Those files are downloaded to ./data, and imported using load_tsv().

SF Data files of physical objects and boundaries typically contain the columns LATITUDE & LONGITUDE. Some contain WKT definitions of points, polylines, or polygons. Those are imported using wkt_to_kml(), which generates a simplekml LineString whether or not the original called for a polygon or linestring. Seems to work fine, but the only use-case so far is parking meter Point locations. I suppose this may call for a cascading if/elif to produce specific kml objects, in the future.

gta_battery_parking's People

Contributors

kevin-prichard avatar

Watchers

James Cloos avatar  avatar

gta_battery_parking's Issues

Match analysis output with presentation

In creating the presentation from the analysis output, I corrected a bunch of stuff. Those deltas need to make it into code.

Will document those later, when I'm able to return to this project.

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.