Code Monkey home page Code Monkey logo

mapping's Introduction

mapping

Contains code that can be used to filter locations given a list of census tracts. This code is covered by the license listed in the LICENSE file in this repository.

############### Run Django website from initial_code>website $ python manage.py runserver Navigate to http://127.0.0.1:8000/nmatch/home/

############### Geocoding: geocoding.py contains code to look up a census tract based on either a lat/long or address. It calls the census website (hardcoded) and is relatively slow. If you find a better way to get a census tract via API please replace! geocode_library.json is a dictionary keyed with either addresses or lat/longs. This can be checked before doing a lookup. Geocoding.py also writes to here to prevent multiple lookups to the slow census site.

############### Website:

nmatch/views.py: Django survey open to editing

pull_scores.py: Called from views. Currently pulls all rows and averages all scores randomly. Can be changed to return even weights to get consistent resuls. Also checks to make sure none of tracts being returned are in the same radius as any others (this may need to be removed if all tracts are returned). The current iteration returns a list of N tracts ranked from best to worst.

tracts.db: Full database with standardized scores. Includes

  • nearby_tracts: Pairs of all tracts with centroids within a 1.25 km radius of each other. All combinations are includes (A,B) and (B,A). Also includes lat and long for census_1 of each row corresponding to the centroid
  • raw_tract_data: Data by individual census tracts, columns should be relatively well named, all prefaces are general categories
  • multiple_tracts: Same data as raw_tract_data but consolidated over all nearby tracts as determined by nearby_tracts database
  • score_table: Weighted scores from 0-100 with 100 being the best besides for crime. Built off of multiple tracts database

mapping's People

Contributors

kmagida110 avatar

Watchers

 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.