72 Commits (9314f6071141a65e55cf7a37f3097773f88154da)

Author SHA1 Message Date
Julian Simioni 204f5297de
Remove all leading newlines in files 7 years ago
missinglink 7a01e794cf support aliases for name fields 7 years ago
Stephen Hess 3a862c17ec move empire include/exclude logic to eojsonify_place_details 7 years ago
Stephen Hess e4e8d9b0bf if country_gid exists, remove empire fields 7 years ago
Stephen Hess 473c79e13c use Object.assign instead of lodash.assign 7 years ago
Stephen Hess 81be065418 renamed import, added comment 7 years ago
Stephen Hess 9d54735e41 converted geojsonify_place_details to return instead of modify 7 years ago
Stephen Hess cd99f87c04 inlined and condensed doc setup 7 years ago
Stephen Hess 314e7eb450 converted to reduce 7 years ago
Stephen Hess 1fb50dc6bd removed superfluous conditional 7 years ago
Stephen Hess a85e079544 inlined metadata assignments 7 years ago
Stephen Hess 0dfe67046b removed commented out line 7 years ago
Stephen Hess b02d20c5ee removed commented out line 7 years ago
Stephen Hess 20bf53ef0a inlined geojsonify_meta_data since it's pretty simple 7 years ago
Stephen Hess 5e1360f022 refactored geojsonify, improved test coverage 7 years ago
Stephen Hess 414043ba30 removed unused dependencies 7 years ago
Stephen Hess 1660648f5d added @mapbox scope for geojson-extent 8 years ago
Stephen Hess d35f40f372 switched `label` to property-to-copy 8 years ago
Stephen Hess 34d9893018 removed unused parameter 8 years ago
Stephen Hess beb309ca07 moved assignLabels to fire before geojsonify 8 years ago
Stephen Hess 248b1299c8 added post-processing step to generate labels 8 years ago
Stephen Hess c14a1311f7 extracted labelGenerator to be injectable 8 years ago
Diana Shkolnikov cc9c4148bb Refactor geojsonify code and add ability to pass in clean query params 8 years ago
Diana Shkolnikov 269733b70c Add type property to allow proper handling of arrays 8 years ago
Diana Shkolnikov 1435de906d Add source_id property 9 years ago
Stephen Hess 0870e30366 Refactored the label generation code to be simpler 9 years ago
Julian Simioni 39502df284 Add borough to geojson output and USA.local labels 9 years ago
Diana Shkolnikov 147c849b58 change admin property names to <place_type>_gid from <place_type>_id 9 years ago
Diana Shkolnikov 3862dd233e change admin property names to <place_type>_gid from <place_type>_id 9 years ago
Diana Shkolnikov 7ebb653c22 Change properties.bounding_box to bbox at top level 9 years ago
Stephen Hess 77f396d5cb exposed `macrocounty` and `macroregion` fields in geojsonify 9 years ago
Diana Shkolnikov e17b940136 Compute extent bounding box and expose bounding_box property in results 9 years ago
Diana Shkolnikov 4219cefd56 Add new parent properties and take the first one in each property if it is an array 9 years ago
Julian Simioni 692b6da17d Use layer instead of _type field to determine layer 9 years ago
Julian Simioni cdd00af6bc Build responses with new source and layer fields 9 years ago
Julian Simioni f4a5dd812b Replace depricated Lodash function contains with includes 9 years ago
Peter Johnson 2b9c3d79aa rename outputGenerator -> labelGenerator 9 years ago
Julian Simioni e157749de3 Use _.contains instead of .indexOf 9 years ago
Julian Simioni d4fff26574 Derive type, source, and layer list instead of hardcoding 9 years ago
Julian Simioni b2f3b54f66 Leave only geonames specific mapping in gejsonify helper 9 years ago
Julian Simioni 68c9661c70 Remove all mappings other than helper/type_mapping 9 years ago
Julian Simioni dc623d5af7 Send 3 part gid (source, layer, id) in GeoJSON responses 9 years ago
Diana Shkolnikov f1fdc2bc26 Remove categories from response json 9 years ago
Julian Simioni 509a6a7401 Remove geocoding block from properties in GeoJSON responses 9 years ago
Peter Johnson a1efb0c6d0 lodash-ify some array functions; remove 'yes' and 'y' from thruthy 9 years ago
Diana Shkolnikov dd78f324ee Compute distance for each result of reverse query 9 years ago
Diana Shkolnikov 536a16ec94 Update `local_admin` to `localadmin` 9 years ago
Diana Shkolnikov 75aa235eb8 Properly map geoname results' `layer` and `source` properties 9 years ago
Diana Shkolnikov 562338635c Confidence score calculation 9 years ago
Diana Shkolnikov 1d8db6e5d1 Change type back to layer... oooops 9 years ago