Commit Graph

235 Commits

Author SHA1 Message Date
Al
81c59e116a [countries] use ISO 3166 country name 5% of the time for general addresses, 10% of the time for OpenAddresses. Gives the parser examples of names like "Korea, Republic of" in #168 2017-03-25 19:41:59 -04:00
Al
6b8b6982aa [addresses] more classmethods 2017-03-02 04:23:09 -05:00
Al
f7c8a63093 [addresses] making most of the methods on AddressComponents classmethods if possible so they can be accessed easily for sources not using OSM polygon lookup, etc. 2017-03-01 15:51:56 -05:00
Al
375f7b1684 [addresses] making postcode before {suburb,city} more likely in the UK for #39 2017-03-01 15:43:26 -05:00
Al
79c2429bba [addresses] strip phrases like "# 123" off of English street names if they follow a thoroughfare/post-directional phrase whose expansion does not contain highway/route 2017-02-22 09:51:43 -08:00
Al
5b616dfb57 [addresses] allowing neighborhood components to be passed in 2017-02-17 02:11:56 -05:00
Al
92b34f6af4 [fix] var name 2017-02-14 18:53:53 -05:00
Al
ca79342636 [fix] config 2017-02-14 18:50:51 -05:00
Al
64673c2875 [neighborhoods] add neighborhoods that are not the top match occasionally 2017-02-14 18:17:48 -05:00
Al
b99e31ca17 [neighborhoods] add name:prefix in admin boundaries and neighborhoods (used often in e.g. Germany), use alternative/language keys as well 2017-02-14 18:07:13 -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
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
dbf7242ea0 [fix] /cls/self/ 2017-02-04 19:12:49 -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
cd1875d077 [fix] import 2017-01-27 18:35:43 -05:00
Al
82fb5c1dca [countries] moving country constants to a separate module 2017-01-27 13:15:36 -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
Al
110665651c [fix] existing cleanup_street_name method 2017-01-19 02:40:18 -05:00
Al
a931c5ddc9 [osm] checking for valid street names in OSM street-only training data so e.g. the street name is not just a simple number like "831" 2017-01-19 02:34:29 -05:00
Al
024a6a40b1 [addresses] refactoring place dropout into its own method 2017-01-16 19:35:16 -05:00
Al
09b3aeb7d9 [fix] component 2017-01-11 16:50:54 -05:00
Al
ed5dd28023 [addresses] adding some more synonyms to Brasilia street regex 2017-01-11 16:31:30 -05:00
Al
7f851810d2 [addresses] formatting addresses in Brasilia, so e.g. "Bloco B" is never part of the street name or building name, it's the house number. place=neighbourhood maps to nothing in Brasilia as these are basically subdivisions whose streets are identically named 2017-01-11 16:18:04 -05:00
Al
86c7b7f3fe [addresses] no longer normalizing slashes in boundary names for places that have multilingual names, etc. 2017-01-08 12:41:51 -05:00
Al
a6d94f998b [addresses] stripping parentheticals in admin boundary names as sometimes cities in e.g. Switzerland are like Oberwil (ZG) in OSM 2017-01-08 03:43:22 -05:00
Al
cfdef1788c [addresses] stripping unit from street using the libpostal dictionaries in all the address data sets. Happens surprisingly often in OpenStreetMap as well as OpenAddresses 2017-01-06 10:06:23 -05:00
Al
de2dffa315 [addresses] adding Calle to purely numeric Spanish street names in OSM as well 2017-01-02 23:41:01 -05:00
Al
21a2a7419a [addresses] only add village as city component if no city can be found in the area 2016-12-29 13:41:05 -05:00
Al
f58ebbdf7f [fix] var name 2016-12-28 14:37:00 -05:00
Al
7ee44a584b [fix] genitive case for Russian/Ukrainian toponyms, not locative (#125) 2016-12-28 14:34:28 -05:00
Al
e6e4b28e43 [addresses] making the город/г. prefix apply to the Russian language rather than the country 2016-12-28 13:26:19 -05:00
Al
f995fdf9d2 [fix] default None 2016-12-28 05:09:15 -05:00
Al
91013fe296 [fix] moving checks inside the add_locatives function, fixing float cast 2016-12-28 04:59:27 -05:00
Al
6f009fb8a6 [addresses] adding pymorphy2 for converting Russian and Ukrainian place names (sticking with state and staet_district for the moment) to the locative case as mentioned in #125 2016-12-28 04:48:32 -05:00
Al
165056ccd8 [names] adding configurable prefix/suffix additions for boundary names 2016-12-27 20:32:23 -05:00
Al
80a9c1b308 [addresses] move country-specific cleanups to before reverse geocoding as those deal with the user-specified components 2016-12-27 04:19:57 -05:00
Al
76d8fc1d37 [fix] combined components 2016-12-26 21:35:27 -05:00
Al
d208397ecb [addresses] checking if component is generated in combining fields 2016-12-26 16:58:10 -05:00
Al
afe29abf6c [fix] name 2016-12-25 11:38:18 -05:00
Al
6a852f02bd [fix] var 2016-12-25 03:17:05 -05:00
Al
4edaca7d37 [fix] var name 2016-12-25 02:50:29 -05:00
Al
4cf40f8deb [addresses] sort combined Japanese suburbs by admin level 2016-12-25 02:29:06 -05:00
Al
5b5a3fe235 [fix] adding Taiwan, Hong Kong, and Macao to the CJK patterns since language affects the order 2016-12-25 01:20:59 -05:00
Al
6da092e144 [fix] update language to English when using English names in CJK countries 2016-12-25 01:18:54 -05:00
Al
51802035de [fix] var name 2016-12-25 01:08:44 -05:00
Al
57f17a5d38 [addresses] remove generated components in combined house numbers if the other components were not numeric. Add house number phrase after the units, etc. are generated so it may be applied to a combined house number as well 2016-12-25 00:44:48 -05:00
Al
dad57dc57e [fix] moving CJK check into the if block so language gets changed more often even if the street sign-based language is unk 2016-12-24 21:20:38 -05:00