This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"facets": { | |
"feature_code": { | |
"_type": "terms", | |
"total": 5529, | |
"terms": [ | |
{ | |
"count": 5220, | |
"term": "HSTS" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tims One Hour Data Challenge | |
leeds data hack bdw13 | |
http://i.imgur.com/AfNJhRX.png | |
Dr G Lees & Partners | |
Highfield Surgery | |
The Surgery at Nursery Lane and Adel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (name.second == ba || name.second == po) && postdate ... | |
filter': { | |
'and': [ | |
{ | |
'or':[ | |
{ | |
"prefix" : { "name.second" : "ba" } | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"address":{ | |
"type": "object", | |
"properties": { | |
"number": { | |
"type": "string", | |
"index": "not_analyzed", | |
"store": "no" | |
}, | |
"street": { | |
"type": "string", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://hot.openstreetmap.org/projects - list of active projects that Humanitarian OpenStreetMap Team is working on around world. | |
http://www.learnosm.org/ - Learn OSM beginners site to learn about OpenStreetMap. | |
http://wiki.openstreetmap.org/wiki/Main_Page - OSM Wiki - huge treasure trove of information here | |
http://wiki.openstreetmap.org/wiki/Bolivia | |
mailing list group: http://lists.openstreetmap.org/listinfo/talk-bo | |
http://wiki.openstreetmap.org/wiki/Category:Users_in_Bolivia | |
http://mappingbolivia.blogspot.co.uk/ | |
http://geografialibrebolivia.blogspot.co.uk/? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"NAME": "Navajo", | |
"county_sta": "NavajoArizona", | |
"County_B": "NavajoCounty", | |
"x": -110.314143272, | |
"geometry": { | |
"type": "Polygon", | |
"coordinates": [ | |
[ | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "sinatra" | |
require "oauth" | |
require "oauth/consumer" | |
require 'haml' | |
enable :sessions | |
# Simple Ruby Sinatra application for interacting with GeoIQ server | |
# You would need to either supply environment variables for key, secret and site or change them in this file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head><title>Geocommons and Leaflet JS</title> | |
<!-- Leaflet CSS --> | |
<link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist/leaflet.css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist>/leaflet.ie.css" /><![endif]--> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
<!-- Leaflet JavaScript --> | |
<script type="text/javascript" src="CloudMade-Leaflet-404b097/dist/leaflet.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unpack an array of little-endian 4-byte ints, and convert them into | |
# signed floats by dividing by 10^6, inverting the process used by the | |
# compress_wkb_line() function in the SQLite helper extension. | |
def unpack_geometry (geom) | |
points = [] | |
if !geom.nil? | |
# Pete - The database format is completely different to the one | |
# expected by the code, so I've done some detective work to | |
# figure out what it should be. It looks like the format is | |
# | 1 byte Type | 4 byte SRID | 4 byte element count| 8 byte double coordinates * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CURRENT_PATH = File.expand_path(File.dirname(__FILE__)) | |
require File.join(CURRENT_PATH, '..', 'lib', 'ruby_mapnik') | |
map = Mapnik::Map.new do |m| | |
m.width = 2024 | |
m.height = 1768 | |
m.background = Mapnik::Color.new("#fff") | |
m.srs = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs" |