Produces line maps showing how far locations are from places of interest like hospitals, libraries, art galleries, etc.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
library
.gitignore
LICENSE
README.md
add-to-database-dedupe.py
clean-geo-data.py Complete small scale grid. Dec 22, 2013
creategrid.py
distancesphere.py
generatesearchlocations.py
get-nearest-place-complete.py
get-nearest-place.py
map-places.R

README.md

Lonely Places

NOTE: Lots more documentation needed.

Extracts location data about various place types from Google Places, and produces a line map showing how close a grid of locations are from these places.

Run in the following order, making adjustments to the variables at the top of each file to suit your needs:

  1. get-nearest-place.py: Scans the entire area you're looking at and records the location of the nearest place of interest.
  2. clean-geo-data.py: Separates data into separate files if you run the Google Places scan using multiple "place types"
  3. add-to-database-dedupe.py: Imports your place data into a MySQL database and de-duplicates any place locations.
  4. get-nearest-place-complete.py: Finds the nearest location of interest for every point on a grid. Uses data in MySQL database and outputs a CSV.
  5. map-places.R: Maps the data produced in step 4.