Bryan Housel
4244de00f3
Update dependencies, move some projects from ideditor -> rapideditor
2023-03-13 10:28:56 -04:00
Peter Newman
443ce3b78b
Pull the countryReplacement data back into the build script
2022-10-27 10:29:27 -04:00
Peter Newman
bdf1215c05
Revert "Finish file-based support for now"
...
This reverts commit 0a798422dac0d9c03b164637bebd80b1c6abd1eb.
2022-10-27 10:29:27 -04:00
Peter Newman
668e2b58cf
Finish file-based support for now
2022-10-27 10:29:27 -04:00
Peter Newman
b2980f3f38
Fix the syntax and make sure it's all done as lower case
2022-10-27 10:29:27 -04:00
Peter Newman
2dbee4c3bf
Tidy locationSet during build
...
We should use gb consistently, firstly because its the correct/actual location, secondly to make it easier and better compatibility for external tools and finally because it makes searches on nsi.guide more consistent too.
2022-10-27 10:29:27 -04:00
Bryan Housel
03b3934591
Only copy a main value to a local value if the local value not set
...
re: https://github.com/osmlab/name-suggestion-index/issues/6788#issuecomment-1188024213
2022-07-18 14:27:43 -04:00
Bryan Housel
82b4751e6c
Remove all code related to managing the *:wikipedia tags
...
(re: #6481 )
2022-04-21 12:59:18 -04:00
arch0345
538db72798
check sport
for odd puncuation
2022-04-17 22:40:57 -07:00
arch0345
0454002840
Add Portland Loo, npm run build
...
Also added key flush:disposal to tryKeys to choose a more specific iD preset for toilets
2022-03-27 00:58:23 -07:00
Bryan Housel
6fa7d8edde
Try to avoid adding a name that is empty or only punctuation
...
re: aa36ed289f (commitcomment-66339219)
2022-02-27 14:46:53 -05:00
Bryan Housel
ac4c0d7c02
Merge pull request #6186 from osmlab/arch0345-government
...
Choose a more specific iD preset for govt offices
2022-02-27 13:41:37 -05:00
Bryan Housel
85015fe18b
Use import assertions syntax for importing JSON files
...
(closes #6014 )
2022-02-16 11:40:10 -05:00
archpdx
3c8c17dc5b
Remove warning for missing government
tag
...
Some of the operators cover multiple types of government offices so some of these won't have one
2022-02-13 01:14:55 -08:00
arch0345
63d7d0d9ad
Choose a more specific iD preset for govt offices
...
Also added warning if `office=government` is missing `government=*` or the value contains odd punction/spacing
2022-02-12 18:11:34 -08:00
Bryan Housel
d6d8b5acef
s/colors/chalk
...
(re: #6039 )
2022-01-10 23:40:27 -05:00
Max Erickson
7e08ce1b6c
Revert "Add json type assertions for node 17."
...
This reverts commit f4a11709e3
.
Undo last change.
2022-01-05 18:14:19 -05:00
Max Erickson
f4a11709e3
Add json type assertions for node 17.
2022-01-05 17:20:27 -05:00
Bryan Housel
26879d45a3
Create data/operators/amenity/recycling, but keep a few under brands
...
(closes #5210 )
2022-01-03 16:29:05 -05:00
arch0345
4c488872c4
Fix typo in the build script
...
Comment and Wikipedia shows that the old ISO code for Hebrew was `iw`, not `il`
2021-12-29 19:09:30 -08:00
Bryan Housel
b297ce2ca9
When adding new items, add only the most popular spelling
...
(closes #5898 )
2021-12-19 15:08:26 -05:00
Bryan Housel
5e1cb70d3a
Improve how we check the nsi-collector version number
...
(re #5519 )
Before: Look at what name-suggestion-index's `package.json` says
Now: Look at what nsi-collector's `package.json` says
This fixes the situation where nsi-collector gets updated and published
but I just haven't run `npm update` in name-suggestion-index repo yet.
2021-11-10 09:56:27 -05:00
Bryan Housel
1deb874338
pacify eslint
2021-11-03 17:14:16 -04:00
Bryan Housel
e401e96d1a
Put metadata into dist/filtered
files, avoid overwriting newer data
...
(closes #5634 , closes #5519 )
2021-11-03 16:05:55 -04:00
Bryan Housel
983308090f
Raise a warning if a same-named item exists in several trees
...
(re: #5625 )
2021-11-02 16:36:34 -04:00
Bryan Housel
ddec36994b
Revert #5613 - categories may exist in multiple trees
2021-11-01 15:42:23 -04:00
Bryan Housel
effa41e965
Comment out the post office operator->brand switchover code
...
(re: #5613 )
2021-10-31 16:17:58 -04:00
Bryan Housel
7f1cd34492
Move post office items from 'operators' back to 'brands'
2021-10-31 14:49:43 -04:00
Bryan Housel
f3afc00b49
Add new category amenity/training for code ninjas
...
(closes #5483 )
2021-10-12 10:03:31 -04:00
Bryan Housel
99005a4817
Take the collected names '@ideditor/nsi-collector' project
...
(closes #5311 )
2021-09-19 11:41:09 -04:00
Bryan Housel
5df2a2dac9
Leave "en:%25Arabica" urlencoded, "en:%Arabica" is worse
2021-07-28 11:36:43 -04:00
Bryan Housel
1a9d0894de
Add guard code around decodeURIComponent for "en:%Arabica"
2021-07-28 10:46:23 -04:00
Bryan Housel
c12d124974
Adjust console message from "gathered" to "collected"
...
(more consistent with phrasing we use elsewhere)
2021-07-24 16:04:50 -04:00
Bryan Housel
e2bfcf3913
Make the Matcher a class
...
This makes using it a bit more idiomatic: `const matcher = new Matcher();`
2021-06-22 16:56:21 -04:00
Bryan Housel
b21ac2eb66
Enable --experimental-json-modules so we can import json files
...
https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_experimental_json_modules
This was something that we did a lot of with require()
2021-06-22 15:17:54 -04:00
Bryan Housel
1c4fc70e3b
WIP Modernize
...
- switch to type: module
- replace all CJS require/module.exports with ES6 import/expor
2021-06-22 00:04:52 -04:00
Bryan Housel
d2ad70733b
Upgrade to location-conflation v1.0.1
...
(closes #5124 )
Note: The ergonomics of how we "require" defualt export from the CJS package is
_weird_ and different from what rollup previously built for us. That's ok.
(This is https://github.com/evanw/esbuild/issues/1182 )
This will be less weird when I switch this project over to ESM and we
instead "import" the ESM package of location-conflation.
2021-06-18 14:55:28 -04:00
Bryan Housel
21f5b4e838
In trees schema, name tag patterns do not need to be Arrays
2021-03-15 11:36:34 -04:00
Bryan Housel
b59f93b168
Expand templates when building/checking the index
...
(this takes a few ms, but gives us more accurate counts of what the index contains
2021-03-11 11:32:58 -05:00
Bryan Housel
beb27f88ab
Don't warn that the Wiphala flag is missing a subject
2021-03-10 11:49:33 -05:00
Bryan Housel
96a90be9e1
Remove temp code
2021-03-08 16:24:23 -05:00
Bryan Housel
14e4da9483
In transit tree, remove the operator if it is the same as network
...
Many of these were added incorrectly
(closes #4944 )
2021-03-08 16:13:44 -05:00
Bryan Housel
cccc32bc16
Have the matcher handle generic/common words too
...
(closes #4924 )
2021-02-26 11:18:23 -05:00
Bryan Housel
551de0a47b
Remove redundant brand tags from operators
...
(closes #4925 )
2021-02-24 17:58:42 -05:00
Bryan Housel
762da4f62d
Uncomment the lines to update keep/discard files
2021-02-22 17:10:29 -05:00
Bryan Housel
58d638f4fe
Restore the filtering in build script,
...
Add skipCollection for categories which should not do it
(re: #4906 )
2021-02-18 15:20:53 -05:00
Bryan Housel
e5bb924bc1
Store in trees.json which source tags we are collecting from OSM
2021-02-18 13:13:02 -05:00
Bryan Housel
ea9d441ffb
Wrap category properties in a properties
object
2021-02-18 12:30:42 -05:00
Bryan Housel
3e10bb0009
Rewrite the keep/discard filtering code to not use keepKV/discardKVN
...
But leave commented out, as it will introduce some changes in what gets kept/discarded
2021-02-18 00:13:34 -05:00
Bryan Housel
b939ae2af4
Remove temp code, use ES6 Map for the itemID lookup
2021-02-17 15:10:27 -05:00