Commit Graph

1942 Commits

Author SHA1 Message Date
Al
2727572822 [addresses] using the name key disttribution in AddressComponents.all_names. Returning names and valid components from the new function instead of the full gazetteer (can be build later) 2016-12-18 17:22:13 -05:00
Al
954b6548bf [names] adding name_key_dist method to boundary names to account for certain boundaries like e.g. Kings County that have name exceptions 2016-12-18 17:20:03 -05:00
Al
d308473686 [addresses] separating boundary phrase gazetteer construction into its own method 2016-12-18 15:47:20 -05:00
Al
585b203a4f [fix] /props/attrs/ 2016-12-18 15:32:09 -05:00
Al
82b26117aa [fix] name comparison in neighborhoods index 2016-12-18 15:27:21 -05:00
Al
8322e98ad3 [fix] var name II 2016-12-18 11:42:16 -05:00
Al
0c55bc3bb8 [fix] var name 2016-12-18 11:41:00 -05:00
Al
e5657c5612 [fix] putting the neighborhoods check after the dupe threshold check, as it's not really needed until then anyway 2016-12-18 03:00:40 -05:00
Al
4314a6822d [fix] don't need to do two checks for OSM boundaries 2016-12-18 02:32:05 -05:00
Al
590246748f [fix] move OSM check to after ClickThatHood/Quattroshapes checks as we don't need to check the point if it doesn't match a neighborhood geometry. Should speed up neighborhood index construction 2016-12-18 02:27:50 -05:00
Al
86a8315b9d [openaddresses] adding new config option to OA config for aliasing fields based on a regex 2016-12-18 01:50:58 -05:00
Al
d357f0f37c [neighborhoods] check polygon boundaries in OSM neighborhood points for a name match at the city level or below 2016-12-18 01:46:44 -05:00
Al
3c6ed7489c [openaddresses] adding regex replacement to remove "*" from any field 2016-12-16 17:09:41 -05:00
Al
ba96f68b62 [fix] openaddresses formatter 2016-12-16 14:22:15 -05:00
Al
da3240d5f6 [openaddresses] making field maps in OpenAddresses config a dictionary rather than a list to make inheritance easier 2016-12-16 06:54:36 -05:00
Al
83aab5a46a [openaddresses] adding option to map values for a particular field 2016-12-16 06:44:19 -05:00
Al
846b88cde5 [addresses] let the place config take care of adding/removing neighborhoods rather than doing it as part of the add_neighborhoods method 2016-12-14 03:15:07 -05:00
Al
5946ead37f [addresses] using the defined component from the neighborhoods index for city_district (they're fairly rare, just NYC boroughs basically) 2016-12-14 03:10:07 -05:00
Al
026737cd3b [neighborhoods] adding component to neighborhoods index at construction time 2016-12-14 03:07:13 -05:00
Al
5846943b70 [addresses] removing place_type override requirement from the neighborhoods index (NYC boroughs, etc.) 2016-12-14 02:16:57 -05:00
Al
09f808ca47 [geoplanet] only add short postal codes to GeoPlanet data set if they match the Google regexes 2016-12-13 17:03:26 -05:00
Al
6b04711195 [neighborhoods] adjust cache size when building neighborhoods index 2016-12-13 16:11:42 -05:00
Al
40cd86c3be [addresses] only add city relacement if a city is not found first 2016-12-13 16:10:52 -05:00
Al
cd91068f0f [neighborhoods] fix neighborhoods index checks to include the borough points while still not making letting something like Santa Monica pass as a neighborhoods when it's a proper city 2016-12-13 02:30:24 -05:00
Al
d158751d92 [addresses] same rules for state_district apply to state, no alt_names etc. unless a city is present 2016-12-12 05:31:32 -05:00
Al
bf3e9749ca [osm] during place formatting, add point-based cities for any places/polygons that are smaller than cities e.g. suburb or city_district, use admin_center as the point for reverse geocoding if available (instead of representative_point() which can be expensive or centroid which can be inaccurate) 2016-12-12 05:29:39 -05:00
Al
da4fe37fb4 [addresses] option to add city points, no random keys for state_district if city or replacement is not present 2016-12-11 16:24:16 -05:00
Al
dfc88a47b2 [fix] typo 2016-12-11 02:46:03 -05:00
Al
e8abf44c16 [neighborhoods] check if there's no defined place-type before classifying a polygon as city_district 2016-12-11 02:44:02 -05:00
Al
fffc81a17a [fix] default value 2016-12-10 18:14:25 -05:00
Al
371198da3c [fix] typo 2016-12-10 18:14:11 -05:00
Al
91982528c6 [fix] normalize place names after adding admin boundaries as well 2016-12-10 18:07:41 -05:00
Al
34d3ae7e9e [addresses] fixing normalized_place_name so it deals with things like Washington DC where Washington DC may actually be one of the OSM names 2016-12-10 17:52:38 -05:00
Al
80ee34cc3a [text] adding normalization with whitespace 2016-12-10 17:50:53 -05:00
Al
4550f00f03 [fix] var name 2016-12-10 15:18:09 -05:00
Al
72771741c3 [fix] order 2016-12-10 15:16:35 -05:00
Al
8595d8da05 [addresses] don't add components to the trie that have the same normalized name as the given component 2016-12-10 15:12:40 -05:00
Al
bb12d0940e [fix] options/docs in osm address training 2016-12-10 13:45:37 -05:00
Al
ffc584f679 [states] adding all forms of the state abbreviation to the trie when doing place name normalization to handle the D.C./DC case 2016-12-10 13:45:22 -05:00
Al
5098599ed6 [addresses] remove Quattroshapes/GeoNames cities as they may have problematic names, and in any case we have point-based cities from OSM now 2016-12-10 02:08:40 -05:00
Al
18c5fd0855 [fix] check for non-None city 2016-12-10 01:23:06 -05:00
Al
dc022f8652 [osm] adding normalized_place_name to Quattroshapes city 2016-12-10 01:20:40 -05:00
Al
c7b1818695 [fix] imports 2016-12-09 19:53:17 -05:00
Al
973466bb13 [states] adding multiple state abbreviations for states that can have periods in the naem like D.C., D.F. in Mexico and Brasil, etc. 2016-12-09 19:48:59 -05:00
Al
675552d254 [addresses] using normalized tokens when stripping off compound place names for things like D.C. 2016-12-09 17:52:57 -05:00
Al
c0a468d7e8 [normalization] adding a normalize_token function and some token options for deleting periods 2016-12-09 17:46:26 -05:00
Al
8f30987bdf [fix] checking if building is a rail station 2016-12-09 02:57:47 -05:00
Al
e92963de50 [openaddresses] adding new counties from OpenAddresses, strip commas option for thousands separators 2016-12-09 01:57:21 -05:00
Al
b60b7c9009 [geoplanet] adding an index of state_districts, states, etc. that contain a city with an identical name. Alias to the city if it's the only contained place, otherwise don't allow the admin name without the city. 2016-12-08 17:00:29 -05:00
Al
640f70c05d [geoplanet] all_places table, specified dirs 2016-12-08 02:50:08 -05:00