Commit Graph

415 Commits

Author SHA1 Message Date
Al
ffece04855 [osm] Place training data from OSM script 2016-07-25 02:45:16 -04:00
Al
4d94495d45 [osm] place training data comes from both admin nodes and the polygons in the OSM index (using representative_point) 2016-07-25 02:39:53 -04:00
Al
776145cf8e [osm] Adding new option to control whether we drop non-city OSM boundary names that have the same name as the enclosed city 2016-07-25 01:24:13 -04:00
Al
1ccea09a92 [osm] Don't call components.normalize_place_names in OSM address formatting, only add place components population / 10000 + 1 times for the name tag itself, not loc_name, int_name, etc. 2016-07-25 01:16:27 -04:00
Al
3957aea430 [fix] add postal_code alias 2016-07-25 00:48:55 -04:00
Al
f0dea9cba1 [fix] No random_key for non-local languages 2016-07-25 00:16:22 -04:00
Al
b31d71bbc1 [fix] parens 2016-07-25 00:14:36 -04:00
Al
e5b84205bc [osm] Use int_name tag and add English boundary names even if only a raw name is available for the original place node 2016-07-25 00:13:21 -04:00
Al
b50cb0cdf9 [osm] add random variations of the containing components' names in building place training data. For places with small or unknown populations, use the default names of the containing components 2016-07-25 00:04:44 -04:00
Al
dbc5957fa6 [fix] reverting, random state abbreviations should be fine 2016-07-24 23:47:30 -04:00
Al
cf84b5727e [osm] always_use_full_names=True for encompassing boundaries on place queries 2016-07-24 23:21:14 -04:00
Al
0fa372f2c0 [fix] tags.get as nodes may not have type/id 2016-07-24 23:04:09 -04:00
Al
273f5ecf58 [fix] language defaults 2016-07-24 23:02:39 -04:00
Al
43e6f2433a [fix] use ISO3166-1:alpha2 2016-07-24 23:00:59 -04:00
Al
53906c4833 [fix] parens 2016-07-24 22:57:58 -04:00
Al
38b76701d8 [osm] Falling back on OSM country/languages if the point doesn't match the Quattroshapes geometry 2016-07-24 22:56:53 -04:00
Al
4b26962793 [osm] Don't return language from node_place_tags as the list of tags contains the various languages already 2016-07-24 22:17:42 -04:00
Al
87a47a825e [fix] var reference before assignment 2016-07-24 22:00:07 -04:00
Al
2a9185874a [fix] component index 2016-07-24 21:55:02 -04:00
Al
1158076154 [fix] default language suffix is '' 2016-07-24 21:34:59 -04:00
Al
60d4fd3102 [fix] another import 2016-07-24 21:31:52 -04:00
Al
648c016b05 [fix] import and return values 2016-07-24 21:30:53 -04:00
Al
09b77b52a6 [osm] Adding place training set. Every place, even nodes, in OSM will get population / 10000 + 1 simple place queries like city + state included in the training set, even if there are no OSM addresses for that city. Where postcodes are available, they'll also be added to the training examples 2016-07-24 20:09:56 -04:00
Al
39c193d52d [osm] Fixing parse_osm_number_range. Only treat it as a range if the number on the right is greater, make letter range parsing optional 2016-07-24 19:49:20 -04:00
Al
4151ce7919 [osm] Adding rail stations to venues data set if they have a street address and a Wikipedia 2016-07-24 14:13:38 -04:00
Al
26225ee8bb [osm] Removing rail stations from venues and making them a separate data set for reverse geocoding, fixing building!=yes query, should not include records with no building tag at all 2016-07-23 03:57:05 -04:00
Al
83f39a3dc5 [fix] removing print 2016-07-23 03:26:02 -04:00
Al
2a634797ec [fix] make sure values are hashable in mapping OSM components 2016-07-23 03:04:23 -04:00
Al
53f6053ec6 [fix] var names in osm component mapping 2016-07-23 02:05:41 -04:00
Al
9681d4dc8e [merge] 2016-07-22 18:55:55 -04:00
Al
c8e426a94d [osm] If sub-building tags are specified in OSM tags (e.g. addr:floor), only include them if the values are numeric 2016-07-22 18:47:31 -04:00
Al
9bece91bd5 [osm] When choosing a namespaced language, alias all namespaced tags, not just the addr:* tags 2016-07-22 14:56:07 -04:00
Al
9a6279d73b [fix] normalize building component tags, not regular tags 2016-07-22 14:54:18 -04:00
Al
b1b797171c [osm] Combining addr:block_number and addr:housenumber in Japan (randomly adds phrases for the 番号/bango system) 2016-07-22 14:52:16 -04:00
Al
bc2a0f0926 [osm] Splitting place keys into those that override admin_level and those that are fallbacks when admin_level, etc. are not present 2016-07-21 17:04:57 -04:00
Al
352d648649 [fix] label properties for relations 2016-07-21 17:04:57 -04:00
Al
7489c14455 [osm] Adding method for overriding per-country boundary types (either by id or containing polygon) 2016-07-21 17:04:57 -04:00
Al
538861a880 [osm] update properties of a relation with its label's properties 2016-07-21 17:04:57 -04:00
Al
6f5aeb725c [fix] include admin center id and type 2016-07-21 17:04:57 -04:00
Al
dd20db85e1 [fix] include all relation members from OSM in dependencies 2016-07-21 17:04:57 -04:00
Al
cabe2c2930 [fix] define var 2016-07-21 17:04:57 -04:00
Al
12250533e3 [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-21 17:04:57 -04:00
Al
0f56eb5aca [fix] Only add nodes to dictionary if they have place= as there are named nodes that are not admin_centres 2016-07-21 17:04:57 -04:00
Al
3eae77c148 [fix] Reverting to dropping ways/relations in planet-neighborhoods.osm since the polygon index itself can now be checked 2016-07-21 17:04:57 -04:00
Al
f5ecba155f [osm] get_first_component for passing in a properties dictionary and returning an address formatting component 2016-07-21 17:04:57 -04:00
Al
ad5f34664a [osm] Adding admin_center properties to admin boundary polygons 2016-07-21 17:04:57 -04:00
Al
904cb7f4c1 [osm] Extract all members with role= as dependencies 2016-07-21 17:04:57 -04:00
Al
ff66151109 [components] Check global keys first (e.g. place= before admin_level=) in boundary component mapping 2016-07-21 17:04:57 -04:00
Al
e2097f79fd [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-21 17:04:57 -04:00
Al
c91950ea6c [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-21 17:04:57 -04:00