Commit Graph

1972 Commits

Author SHA1 Message Date
Al
b9c24867d7 [fix] set component to suburb on OSM neighborhoods index 2017-02-14 02:19:53 -05:00
Al
072a838fde [neighborhoods] components are now pre-calculated by CTH index 2017-02-14 02:04:07 -05:00
Al
c91a0bdb91 [fix] rm 2017-02-14 01:56:24 -05:00
Al
949c10ab22 [fix] remove print 2017-02-14 01:53:54 -05:00
Al
738bd7b525 [neighborhoods] logging, moving OSM/CTH before Quattroshapes for easier testing 2017-02-14 01:52:59 -05:00
Al
67f69ce6ce [fix] move 2017-02-14 01:51:23 -05:00
Al
6d580f4c87 [osm] neighborhood polygon reader 2017-02-14 01:50:04 -05:00
Al
6c68d446a0 [neighborhoods] adding ClickThatHood config to whitelist/specify what kind of polygon is specified in each file. Adding OSM neighborhoods (ways/relations where place=neighbourhood to reduce ambiguity) as the highest priority, followed by CTH/OSM, CTH, Quattro/OSM, Quattro 2017-02-14 01:48:43 -05:00
Al
2003e08623 [osm] creating an OSM neighborhood boundaries data set for place=neighbourhood polygons only (place=suburb, etc. can be ambiguous) 2017-02-13 20:45:54 -05:00
Al
e569956944 [osm] remove postcode field if more than one is found 2017-02-11 03:52:46 -05:00
Al
9af4b1bd42 [openaddresses] fixing street requirement 2017-02-11 03:29:09 -05:00
Al
2dff6c8839 [fix] call 2017-02-11 02:16:55 -05:00
Al
081f023d60 [fix] name 2017-02-11 02:10:59 -05:00
Al
6705ebaffd [fix] import 2017-02-11 02:09:31 -05:00
Al
7bfc52b540 [osm] add postcode phrases when there's no validation/component-stripping 2017-02-11 01:54:55 -05:00
Al
c9ade4a7da [openaddresses] adding postal code country phrases in OpenAddresses as well 2017-02-11 01:48:54 -05:00
Al
f6bea5ebe5 [fix] always validate in comma-separated postcodes 2017-02-11 01:42:19 -05:00
Al
3d9b512cda [fix] pop 2017-02-11 01:28:56 -05:00
Al
e5a98d16d8 [fix] args 2017-02-11 01:15:07 -05:00
Al
01c4c8ec82 [fix] scope 2017-02-11 01:07:20 -05:00
Al
29ba58d68a [fix] var 2017-02-11 01:01:29 -05:00
Al
f0dfd7850c [fix] ignore punctuation in strip_components 2017-02-11 01:00:37 -05:00
Al
f07d93df2c [fix] omitted line 2017-02-11 00:57:47 -05:00
Al
ffc12ec5ab [osm] add new method in OSM formatting to extract one or more expanded postal codes from an addr:postcode tag, using the new country-specific rules 2017-02-11 00:53:52 -05:00
Al
bbcb6444c8 [addresses] add strip_components method which simply removes the names of OSM components from a string (for e.g. postal codes) 2017-02-11 00:07:55 -05:00
Al
4e1d7d9373 [osm] use new postal codes module in OSM formatting 2017-02-10 23:56:23 -05:00
Al
9022fb9149 [places] use country.lower() 2017-02-10 23:54:43 -05:00
Al
a0d674274a [neighborhoods] immutable data structures when loading from JSON 2017-02-10 23:54:24 -05:00
Al
293587bae9 [addresses] adding new config for postal codes around the world. Allows appending the ISO alpha-2 country code to the beginning of the postcode as in e.g. SI-1000 (only used if the postcode begins with a digit). This system was used for postal codes in continental Europe as a recommendation from the CEPT. Now 7 member states still use it, so in those countries add the country-code with higher probability. The config also contains the license plate codes for countries where e.g. L-1234 might be used instead of LU-1234. Allows configuring in which countries postcodes should be validated using Google's per-country validation regexes (and the ability to override with a custom regex), and in which countries other admin component names should be stripped. 2017-02-10 23:53:50 -05:00
Al
7a360f4211 [osm] addr:postcode can be all over the place in OSM. Start with postcodes containing commas or semicolons. If addr:postcode (on address of building) contains either, iterate over the values and pick the first one that matches a postcode validation regex for that country 2017-02-08 16:13:29 -05:00
Al
dbf7242ea0 [fix] /cls/self/ 2017-02-04 19:12:49 -05:00
Al
c600f05f06 [openaddresses] adding Czech Republic to the street not required set 2017-02-04 15:30:46 -05:00
Al
0169448a4d [addresses] adding Central European city district regexes (e.g. Praha 1, Budapest IV, etc.) to country-specific cleanup 2017-02-03 20:54:23 -05:00
Al
85f03184d5 [openaddresses] moving postcode fixes before validation. Adding regex for validating Russian house numbers in the Ukraine 2017-02-02 11:21:00 -05:00
Al
12bc18f74b [openaddresses] fix Chinese house number validation 2017-01-28 02:03:19 -05:00
Al
2b349ef8a8 [fix] nevermind, needed to do the Spanish-language street names before validation (simple numeric names like \"8\" needs to be prefixed with \"Calle\" or they'll fail validation) 2017-01-28 01:08:10 -05:00
Al
2953759321 [openaddresses] formatting Chinese house number (with annex adding a second number potentially) and adding Spanish street names after the language is known by reverse geocoding 2017-01-28 01:01:26 -05:00
Al
c9417436f7 [openaddresses] allowing a single character boundary name in ideographic languages 2017-01-27 23:38:03 -05:00
Al
72881ad315 [fix] conditional + var name 2017-01-27 19:20:41 -05:00
Al
987609ee8e [fix] var name 2017-01-27 18:46:58 -05:00
Al
cd1875d077 [fix] import 2017-01-27 18:35:43 -05:00
Al
01d6d47b08 [osm] removing addr:place mapping to road as it's usually a village in post-Soviet states, etc. Can handle it down the road 2017-01-27 13:54:08 -05:00
Al
11345bf2bf [osm] using new constants in OSM formatting as well 2017-01-27 13:53:00 -05:00
Al
b25f5f26ae [openaddresses] not requiring street name in former Soviet countries (may be village + house_number). Only allowing address-only if street is present 2017-01-27 13:17:07 -05:00
Al
82fb5c1dca [countries] moving country constants to a separate module 2017-01-27 13:15:36 -05:00
Al
a760f96015 [fix] allow only house_number with no street in OpenAddresses Japan 2017-01-27 03:04:38 -05:00
Al
52a53cda1f [fix] postcode formatting in OpenAddresses 2017-01-25 01:41:27 -05:00
Al
287d2f4048 [fix] leading zeros on numeric phrases 2017-01-25 01:40:20 -05:00
Al
bc748b6d62 [addresses] supplying country arg when stripping name affixes both for OSM place-based data sets (ways, localities) and OpenAddresses (shouldn't affect any of the countries currently in OA though) 2017-01-23 23:30:33 -05:00
Al
c36611c060 [addresses] let containing components include all boundaries, not just those that are larger than the current boundary (affects cases like Buenos Aires where the city has a lower admin level than its districts, so would be subject to the boundary config's contained_by override) 2017-01-23 10:48:08 -05:00