GithubHelp home page GithubHelp logo

zhwlxl / travel-housing-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bayareametro/travel-housing-map

0.0 0.0 0.0 180.68 MB

Interactive travel time and housing map built by Stamen Design. Visit this link to check out the site:

Home Page: http://travel-housing.mtcanalytics.org

Python 7.19% Shell 0.32% JavaScript 58.93% CSS 17.07% Makefile 2.01% HTML 14.48%

travel-housing-map's Introduction

MTC Travel Time Maps

Website Overview: Bay Area Travel Map

Website: Map Explorer

Overview

There's three major components to the MTC travel time application:

  1. JavaScript front-end (currently hosted on Amazon S3), found in /www
  2. Scripts to process raw MTC transit data and create CSVs, found in /data. See /data/README.md
  3. The TAZ API, outlined below.

To run the front end locally I'd recommend using the built in Python HTTP server:

python -m SimpleHTTPServer 8000 .

TAZ API

The map needs a way to know which TAZ (Transportation Analysis Zone) a given geographic point (latitude, longitude) belongs to. We're using Code for America's US Census Area API for this, running at mtc-taz-api.herokuapp.com (try the sample request).

Setting up the API server

# 1. clone the Census Area API repo
$ git clone https://github.com/codeforamerica/US-Census-Area-API.git mtc-taz-api
$ cd mtc-taz-api

# 2. point this at the Heroku app named "mtz-taz-api"
$ heroku git:remote -a mtc-taz-api
$ git config heroku.remote heroku

# 3. use CfA's pygeo buildpack
$ heroku config:set BUILDPACK_URL=https://github.com/codeforamerica/heroku-buildpack-pygeo

# 4. point it at our TAZ Shapefile zip
$ heroku config:set ZIPPED_DATA_URL=http://maps.onebayarea.org/data/areas/taz1454_4326.zip

# 5. use the user-env-compile addon
$ heroku labs:enable user-env-compile

# push it (real good)
$ git push heroku master

travel-housing-map's People

Contributors

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