GithubHelp home page GithubHelp logo

vgrichina / mtv-projects Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 26 KB

Mountain View, CA – Map of active construction projects

Home Page: https://vgrichina.github.io/mtv-projects/

Python 49.44% HTML 50.56%
mountain-view open-data open-government opendata opengov geodata google-maps

mtv-projects's Introduction

Mountain View, CA – Map of active construction projects

This isn't official information, it is based on official development project list available here: http://mountainview.gov/depts/comdev/planning/activeprojects/list.asp

Data is scraped from PDF files and may contain inaccuracies. Please consult linked PDF files for accurate official information.

Your contributions are welcome -- please fork and submit pull requests.

Hacking on

index.html contains map frontend code itself. Change it if you want to change the way information is displayed.

data/projects.json contains scraped data. It is generated by combination of download.py and preprocess.py

download.py downloads pdfs from Mountain View website into data/ folder. It also converts them to text and parses using parse.py module. Results are written to data/projects.json.

preprocess.py prepares data/projects.json for use on map. It tries to parse addresses from project titles and geocodes them using Google Maps API.

Running locally

Requirements

Download data

python download.py

Preprocess data

Create secrets.sh file with following contents:

export GOOGLE_API_KEY=<your API KEY>

API key can be obtained here https://console.developers.google.com/apis/credentials

python preprocess.py

Run local web server

python -m SimpleHTTPServer 8000

This will start webserver available on http://localhost:8000. It is important to open web page from server as JS cannot load data if you open it locally from file system.

mtv-projects's People

Contributors

vgrichina avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.