Commit Graph

907 Commits

Author SHA1 Message Date
Al
2c32ef440a [osm] Splitting place keys into those that override admin_level and those that are fallbacks when admin_level, etc. are not present 2016-07-20 14:59:35 -04:00
Al
8a46950367 [fix] label properties for relations 2016-07-17 03:13:01 -04:00
Al
d3b1ba12cb [osm] Adding method for overriding per-country boundary types (either by id or containing polygon) 2016-07-15 19:50:53 -04:00
Al
753d937b09 [osm] update properties of a relation with its label's properties 2016-07-15 19:41:07 -04:00
Al
54fc7b47de [fix] include admin center id and type 2016-07-15 16:39:21 -04:00
Al
65b4755487 [fix] include all relation members from OSM in dependencies 2016-07-15 01:56:26 -04:00
Al
e36629b6a9 [fix] define var 2016-07-14 19:35:22 -04:00
Al
20df34b714 [osm] fixing Santa Monica and other polygons by treating member ways with blank role type (old way of specifying outer) as outer boundaries so the polygons are valid, adding a properties-only option admin polygons 2016-07-14 19:24:47 -04:00
Al
c42bb4ca9b [fix] Only add nodes to dictionary if they have place= as there are named nodes that are not admin_centres 2016-07-14 17:58:54 -04:00
Al
2e7a1cd567 [phrases] pulling phrase extraction out of command-line script so it's more reusable for other tasks 2016-07-14 17:07:39 -04:00
Al
a7b3403bf7 [osm] Neighborhood index now uses OSM admin R-tree to check whether nodes that are otherwise classified as non-suburbs (e.g. Santa Monica is a city) but may still match one of the neighborhood data sets, are excluded from the final neighborhood index 2016-07-14 17:03:23 -04:00
Al
4d5d0c3621 [fix] Reverting to dropping ways/relations in planet-neighborhoods.osm since the polygon index itself can now be checked 2016-07-14 16:58:56 -04:00
Al
af3ab3194b [osm] get_first_component for passing in a properties dictionary and returning an address formatting component 2016-07-14 16:57:38 -04:00
Al
0094d07621 [osm] Adding admin_center properties to admin boundary polygons 2016-07-14 16:37:27 -04:00
Al
c0917bec87 [osm] Extract all members with role= as dependencies 2016-07-14 16:35:08 -04:00
Al
3baf3c3f60 [components] Check global keys first (e.g. place= before admin_level=) in boundary component mapping 2016-07-14 16:33:47 -04:00
Al
9f61976bf6 [addresses] Implementing phrases for numbered blocks 2016-07-12 02:05:36 -04:00
Al
2510d0896b [osm] For the OSM neighborhoods data set, including neighborhoods, cities, etc. which are ways/relations to more effectively dedupe with ClickThatHood and Quattroshapes 2016-07-11 22:31:52 -04:00
Al
538b89c00c [neighborhoods] /zetashapes/clickthathood/ 2016-07-11 15:36:29 -04:00
Al
1ac4ab182e [addresses] Implementing alphabet_probability, so may still use the Latin alphabet in some cases 2016-07-07 15:26:51 -04:00
Al
bdbcbb8d0a [test] Printing invalid phrases in address config tests 2016-07-06 15:40:54 -04:00
Al
dfeea0906c [osm] Adding OSM file for places stored as nodes. Adding a general venue definition accessible from the geodata Python package. OSM definitions expand simple variables so can reuse/combine definitions in the bash script 2016-07-06 15:40:04 -04:00
Al
2f4548664f [addresses] Implementing list-based field combinations 2016-07-04 18:09:50 -04:00
Al
d09e0ca966 [addresses] Implementing whitespace_probability and ordinal_suffix probability for Roman numerals 2016-07-04 18:09:26 -04:00
Al
ad50e44c12 [osm] Japanese addresses only use named valid venues, not just anything with a name 2016-07-03 23:43:32 -04:00
Al
ce2f5be564 [fix] ordinal spellout for numbers which map directly to a simple rule 2016-07-03 23:42:40 -04:00
Al
adb2d30438 [fix] alternatives lists in config utils 2016-07-03 23:42:13 -04:00
Al
ba6ec40748 [addresses] Sample from higher floors in buildings higher than 10 stories since those are relatively rare and we get enough lower numbered floors from random sampling 2016-07-03 23:41:49 -04:00
Al
1c45163411 [addresses] Handling digit rewrites (spellout, Roman numerals, etc.) in the base class 2016-07-03 23:40:50 -04:00
Al
24c0622bce [addresses] Removing temporary file list and allowing any file ending in .yaml in resources/addresses to be parsed/imported 2016-07-03 23:38:15 -04:00
Al
085cae3407 [fix] components 2016-07-03 23:36:27 -04:00
Al
203980fe0f [addresses] Using Digits.rewrite in unit generation as well as adding a new config option for generating positive numbers only 2016-07-02 04:27:55 -04:00
Al
94b5d055f7 [addresses] Using Digits.rewrite for entrance, staircase, floor numbers, and PO boxes 2016-07-02 04:26:40 -04:00
Al
28f49f3eb7 [addresses] Adding Digits, which allows for replacing numbers with their unicode full-width equivalents or doing number spellout 2016-07-02 04:25:29 -04:00
Al
22524f7822 [addresses] Adding some of the new configs and returning None if no phrase alternatives exist 2016-07-02 04:24:07 -04:00
Al
5579156320 [addresses] Fixes for standalone components, conditional adds, and allowing generated unit numbers to use known floor number 2016-07-02 04:22:34 -04:00
Al
ade190f8c7 [osm] Since most streets in Japan do not have names, define a separate set of valid address constraints and merge the files into planet-addresses.osm 2016-06-30 02:34:03 -04:00
Al
171a2c9b2f [addresses] Adding ability to determine unit numbers using a known floor number 2016-06-29 15:57:10 -04:00
Al
5b17a3a3ce [addresses] Roman numerals can be returned by Floor.random, relaxing the Zipfian distribution on floors so we get higher floors 2016-06-28 19:47:23 -04:00
Al
15059c76a6 [test] Adding tests for address configs 2016-06-28 13:10:47 -04:00
Al
5e78f72fc7 [fix] a few errors with non-numbers in numeric_phrase 2016-06-28 13:08:38 -04:00
Al
4bbc52372c [addresses] Adding new configs 2016-06-27 03:06:54 -04:00
Al
0e7348abba [addresses] Implementing Roman numerals and cardinal/ordinal number spellout in numbering base class 2016-06-27 03:06:33 -04:00
Al
ee1326b15c [addresses] Russian address config 2016-06-26 01:25:27 -04:00
Al
414c2e9820 [addresses/dictionaries] Updates to Portuguese configs, variations for Brasil 2016-06-25 20:29:36 -04:00
Al
2b752de6a7 [numex] Adding method to do cardinal number spellout by hundreds e.g. twenty-three seventeen instead of two thousand three three hundred seventeen 2016-06-25 13:36:10 -04:00
Al
b8bc8a33d5 [numex] Ordinal spellout using the numex configs 2016-06-25 13:35:03 -04:00
Al
e2a9a57269 [numex] Adding numeric expression spellout in the Python geodata module for generating training data 2016-06-24 16:10:36 -04:00
Al
cf2ed2b299 [osm/addresses] using new is_numeric in AddressComponents expansion and removing venue names that are identical to the house number 2016-06-23 13:59:40 -04:00
Al
082dbe6dd2 [addresses] Implementing unit types which use concatenated floors with offsets for basement (e.g. Norway) 2016-06-16 01:45:43 +02:00