Skip to content

Instantly share code, notes, and snippets.

/* JOSM Validator rules for flagging potential issues with US highways */
way[highway=unclassified][!name][!ref]{
group: tr("US Highways - Tagging");
throwWarning: tr("Unnamed highway=unclassified");
}
way!:closed[highway=~/ry/]>[index=1] node!:connection:in-downloaded-area,
way!:closed[highway=~/ry/]>[index=-1] node!:connection:in-downloaded-area{
group: tr("US Highways - Geometry");
(
way(5610940);
way(5613614);
way(5628515);
way(5668989);
way(5669355);
way(5669945);
way(5670127);
way(5670485);
way(5670627);
# -*- coding: utf8 -*-
# mapping for Carreteras estatales found
# at http://www2.pr.gov/agencias/gis/descargaGeodatos/Infraestructuras/Pages/Transportaci%C3%B3n.aspx
# more documentation at http://wiki.openstreetmap.org/wiki/Puerto_Rico_Projects/Puerto_Rico_TIGER_Fixup
#
# need to delete one feature because of character encoding issues.
# ogrinfo -dialect SQLite -sql "delete from g35_viales_carreteras_estatales_julio_2015 where objectid==2022" /share/gis/prhta
road_map={
"Red Primaria Urbana Paseo Peatonal":"footway",
FeatureName ID Class County State Latitude Longitude Ele(ft) Map BGN Date Entry Date wikidata wikipedia
Groveland Township 1625796 Civil Oakland MI 42.8139171 -83.5471684 1004 Davisburg 01-AUG-1995
@maxerickson
maxerickson / simpleMAtranslation.py
Last active July 19, 2018 14:56
ogr2osm.py translation file for MA state addresses.
def filterTags(tags):
if tags is None:
return
newtags = {}
if tags["STREETNAME"]!="":
newtags["addr:street"]=tags["STREETNAME"].title()
if tags["STATE"]!="":
newtags["addr:state"]=tags["STATE"]
if tags["ZIPCODE"]!="":
newtags["addr:postcode"]=tags["ZIPCODE"]
@maxerickson
maxerickson / wiki.js
Last active November 1, 2018 12:40
Ease copying OSM tags for Wikipedia entry.
// ==UserScript==
// @name Wiki tags
// @namespace maxerickson
// @version 0.1
// @description Add osm style key=value tags to wikipedia pages.
// @author Max Erickson
// @match *://*.wikipedia.org/*
// @grant none
// ==/UserScript==
Sweet Frog
('amenity', 'fast_food') 18
('amenity', 'ice_cream') 15
('amenity', 'restaurant') 15
('amenity', 'cafe') 3
sweetfrog frozen yogurt
('amenity', 'ice_cream') 1
SweetFrog
('amenity', 'cafe') 7
('amenity', 'fast_food') 7
Names:
Tractor Supply Company 312
Tractor Supply Co 28
Tractor Supply 46
Tractor Supply Co. 85
Tractor Supply Addition 1
Tractor Supply Company Distribution Center 1
Tractor Supply - Trailers 1
----------
Combinations:
name,phone,addr:housenumber,addr:street,addr:city,addr:state,addr:postcode,operator,isced:level,religion,denomination
Academy of International Studies,+1 313 873 9900,2609,Poland Street,Hamtramck,MI,48212,,0;1;2,,
Academy of Sacred Heart,+1 248 646 8900,1250,Kensington Rd,Bloomfield Hills,MI,48304,,0;1;2;3,christian,roman_catholic
Acton Academy Ann Arbor (A2),+1 734 788 2768,4115,Jackson Rd,Ann Arbor,MI,48103,,1,,
Ada Christian School,+1 616 676 1289,6206,Ada Dr Se,Ada,MI,49301,,0;1;2,christian,
Adams Christian School,+1 616 531 0748,5539,Byron Center Ave Sw,Wyoming,MI,49519,,0;1;2;3,,
Adelphian Junior Academy,+1 248 634 9481,740,Academy Rd,Holly,MI,48442,,0;1;2;3,christian,seventh_day_adventist
Aim High School,+1 248 702 6922,29230,12 Mile Road,Farmington Hills,MI,48334,,2;3,,
"Alderbrook School, Inc.",+1 248 731 7725,1050,E Square Lake Rd,Bloomfield Hills,MI,48304,,1;2;3,,
Al-Furqan Quran Academy,+1 313 584 4464,4430,Saint James St,Detroit,MI,48210,,0;1;2,,
1 Fleming Ct
1 Simonton Cir
1 Truman Dr
1 Whitehead Cir
10 Fleming Ct
10 Gables Blvd
10 Key West Ct
10 Simonton Cir
10 Whitehead Cir
100 Bonaventure Blvd