Skip to content

Instantly share code, notes, and snippets.

View samuelestabrook's full-sized avatar

Sam samuelestabrook

View GitHub Profile
@ericrobskyhuntley
ericrobskyhuntley / README.md
Last active March 22, 2020 00:26 — forked from rgdonohue/README.md
Batch Geocoding Script with GeoPy
@DenisCarriere
DenisCarriere / OSM Statistics Tiles.md
Last active September 22, 2017 23:58
OSM Statistic Tiles

OSM Statistics Tiles

The goal of this dataset/project would be to generate geospatial statistics based on OpenStreetMap data and stored as JSON and PBF formats. These pre-computed tiles would enable data scientists to perform complex geospatial analysis at a country wide scale with minimal CPU processing.

Geospatial statitics

There could be thousands of different geospatial statitics that could be generated from a simple OSM dataset within a given BBox, here's a list of the most useful geospatial statitic that would be defined:

  • highway=* (path, residential, secondary, etc...)
@DenisCarriere
DenisCarriere / GIS Homework.md
Last active September 20, 2017 19:37
GIS Homework
@brettkobo
brettkobo / googleDistance.R
Created November 14, 2016 02:19
R Script to analysis traffic patterns over time, specifically in LA.
#googling the distance
library("jsonlite")
library("ggplot2")
library("httr")
library("scales")
#setting theme for ggplot2
mar <- 10
themeBrettrics <- theme(plot.title = element_text(size = 15, face = "bold", margin = margin(10, 0, 10, 0)),
axis.ticks = element_line(color = "black"),
@shanealynn
shanealynn / python batch geocoding.py
Last active January 6, 2024 13:48
Geocode as many addresses as you'd like with a powerful Python and Google Geocoding API combination
"""
Python script for batch geocoding of addresses using the Google Geocoding API.
This script allows for massive lists of addresses to be geocoded for free by pausing when the
geocoder hits the free rate limit set by Google (2500 per day). If you have an API key for paid
geocoding from Google, set it in the API key section.
Addresses for geocoding can be specified in a list of strings "addresses". In this script, addresses
come from a csv file with a column "Address". Adjust the code to your own requirements as needed.
After every 500 successul geocode operations, a temporary file with results is recorded in case of
script failure / loss of connection later.
Addresses and data are held in memory, so this script may need to be adjusted to process files line
@danbjoseph
danbjoseph / omk-notes.md
Last active August 27, 2019 12:24
notes on OpenMapKit (OMK), specifically mbtiles and osm files

#OpenMapKit (OMK) https://github.com/AmericanRedCross/OpenMapKit/wiki

  • install node
    • install the following packages tl, mbtiles, tilelive-http
    • npm install -g tl @mapbox/mbtiles tilelive-http
  • go to http://bboxfinder.com/ and box your area
    • should return your cooridinates in the following order: lng-min, lat-min, lng-max, lat-max
  • open terminal/command line and cd to your project folder and run the following:
  • tl copy -z 13 -Z 20 -b '{{lng-min}} {{lat-min}} {{lng-max}} {{lat-max}}' 'http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png' mbtiles://./{{myFileName}}.mbtiles
@rbanick
rbanick / generic_sql_gis_aggregation.sql
Last active August 29, 2015 14:24
Generic SQL aggregation
## create summary table
CREATE TABLE temp_table AS
(select
count(id) AS features_per_ADMIN,
avg(master_table.thing_to_average) AS avg_thing_to_average,
sum(master_table.thing_to_sum) AS sum_thing_to_sum,
count(master_table.thing_to_count) AS count_thing_to_count,
COUNT(DISTINCT master_table.thing_to_count_distinct) AS cntd_thing_to_count_distinct,
## ...add as many summary fields as you want here
@emilyeros
emilyeros / mapillary_instructions.md
Last active August 1, 2016 22:15
Non-techy upload instructions for Mapillary photos

#Non-techy Mapillary upload instructions - because we're not all nerds

Get the right tools installed

Copy and paste into Terminal:

pip install gpxpy
brew install pyexiv2 exiftool
git clone https://github.com/mapillary/mapillary_tools.git
@rbanick
rbanick / Convert_pbf_to_obf.md
Last active May 17, 2019 18:48
Creating custom OBF files for OsmAnd
@dalekunce
dalekunce / mac_gis_setup.md
Last active July 29, 2023 22:18
Yosemite GIS Machine Setup

Mac OS X GIS Setup

OS X Preferences


# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true