Bryan Housel
0f913113c7
Match a 'route_master' as if it were a 'route'
...
This code just treats `type=route_master` relations as if they were `type=route`
so they will match the transit networks in NSI.
(closes https://github.com/osmlab/name-suggestion-index/issues/5184 )
2021-08-05 22:05:11 -04:00
Bryan Housel
15ee63e875
Improve code for keeping only interesting key/value pairs
...
Before it was not actually checking that the osmvalue was in the vmap,
so we were testing a bunch of pairs like `highway/crossing` and
`highway/residential` that would never match a NSI category.
2021-08-05 16:59:07 -04:00
Bryan Housel
1d5c8253be
NSI matcher shouldn't treat old_name like a name tag
...
(closes #8617 )
2021-08-02 12:21:34 -04:00
Bryan Housel
bd97df6aac
In general, preserve existing values for tags that can be toplevel
...
We'll only _replace_ the tag value if this tag is the toplevel/defining tag for the matched item (`k`)
(closes #8615 )
2021-08-02 12:07:13 -04:00
Milos Brzakovic (E-Search)
d2036996e3
Merge conflicts resolved
2021-07-05 10:26:44 +02:00
Bryan Housel
8db1c1f7f5
Construct URL to match version number that package.json has
...
https://github.com/openstreetmap/iD/pull/8305#discussion_r663037548
2021-07-02 10:27:50 -04:00
Bryan Housel
896d14ba80
Upgrade to name-suggestion-index v6
...
Also bump country-coder and location-conflation
2021-06-24 16:41:50 -04:00
Nikola Pleša
87a823f093
Fix traffic sign rendering and geometry conversion
2021-06-15 10:56:08 +02:00
Nikola Pleša
7a0d8adb7b
Switch to Mapillary API v4
2021-06-15 10:13:07 +02:00
Bryan Housel
add11432d3
More sophisticated name/branch splitting
...
(re: https://github.com/openstreetmap/iD/pull/8305#issuecomment-805454952 )
2021-03-24 18:03:37 -04:00
Bryan Housel
55d9da9480
Improve logic for matching name fragments like TUI ReiseCenter
...
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-799732746 )
2021-03-22 20:23:22 -04:00
Bryan Housel
77e7620ab8
Switch to published NSI v5 🎉
2021-03-22 14:39:58 -04:00
Bryan Housel
f5b6024988
Revise name/branch splitting code
...
This now breaks the name into fragments and reruns the fragments against the NSi matcher
rather than using flaky regular expressions. Has a few advantages:
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-797577999 )
2021-03-12 15:03:50 -05:00
Bryan Housel
d282140999
If we match a generic name, stop looking
...
This is for "nextbike"
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-796126041 )
2021-03-11 17:51:09 -05:00
Bryan Housel
98a622f41a
Make sure a name is either primary or alternate (can't be both)
2021-03-11 17:46:09 -05:00
Bryan Housel
19a8fd16d2
Be smarter about identifying what tree an osm feature might be in
...
Needed this after I added `highway=bus_stop` to the transit tree
2021-03-11 16:28:26 -05:00
Bryan Housel
a827e13a6d
Be less aggressive about removing toplevel tags
...
(re: https://github.com/openstreetmap/iD/pull/8305#issuecomment-792871448 )
2021-03-08 11:36:41 -05:00
Bryan Housel
7a82dba825
Only match alternate amenity/yes if it actually is tagged that way
2021-03-05 10:59:15 -05:00
Bryan Housel
3f8faec413
Improvements to name gathering
...
- Actually bail out properly if namelike values contain semicolon ';'
- Prioritize the canonical tags like `brand:wikidata`, `operator:wikidata`
- Don't insert a name into 'alternate' set if it's already in 'primary' set
2021-03-05 10:40:06 -05:00
Bryan Housel
1b1bf8eed2
Don't offer upgrades to dissolved items
2021-03-05 10:04:29 -05:00
Bryan Housel
bbed217625
For some names, consider splitting name into name and branch..
2021-03-05 09:54:47 -05:00
Bryan Housel
1f6a2121c4
Move all of NSI into a service, rewrite matcher code
2021-03-03 12:04:37 -05:00
Nikola Pleša
6cd17713fa
Use Mapillary vector tiles for images, sequences and map features
2021-03-01 10:19:41 +01:00
Quincy Morgan
4ae7bc9bd5
Update Mapillary.Viewer call for mapillary-js v3 (re: #8245 )
2021-02-23 12:27:32 -05:00
Quincy Morgan
3fade479af
Merge pull request #8310 from openstreetmap/fix_notes
...
Fix a few errors in note processing
2021-02-05 11:46:06 -05:00
Bryan Housel
f195128968
Fix a few errors in note processing
...
- Notes still load over the xml api, so when the user is not authenticated,
we can't use d3_json to fetch them (instead use to d3_xml)
- Make sure to delete the deferred callback handles once the callbacks are
processed (probably unnecessary, but good housekeeping)
- Remove a stray `if (!json.elements)` block from the `parseUserJSON`
function. This was preventing the user profile from parsing, as the
user's JSON has no such property (was probably copied from `parseJSON`)
2021-01-21 14:29:17 -05:00
Bryan Housel
2cd11040b3
Swap out w8r/martinez clipper for mfogel/polygon-clipping
...
This is a drop in replacement that performs better and yields more correct results
see also https://github.com/ideditor/location-conflation/pull/20
2021-01-21 11:31:29 -05:00
Quincy Morgan
2dd0b8449f
Rewrite some confusing nested ternaries ( close #8117 )
2020-12-03 12:18:39 -05:00
Quincy Morgan
f8ddfa9224
Use JSON for user and users endpoints ( close #8188 )
2020-11-10 12:46:43 -05:00
Quincy Morgan
481b80e5cb
Fetch the parent relations when downloading a single entity, e.g. when launching iD with a feature selected ( close #6731 )
2020-11-10 10:00:44 -05:00
Quincy Morgan
981cdc6736
Apply photo date and username filters to Mapillary sign and object detections ( close #8133 )
...
Don't update disabled SVG layers upon photo changes
2020-10-29 11:59:12 -04:00
Quincy Morgan
792a4e8594
Fix background tile issues caused by the cache not properly updating upon load/error with D3 v6
2020-10-26 14:52:58 -04:00
Quincy Morgan
f2ef27f78c
Enable no-implicit-coercion eslint rule for strings
2020-10-23 14:03:50 -04:00
Quincy Morgan
dc8fd13586
Enable array-callback-return eslint rule
2020-10-23 13:47:09 -04:00
Quincy Morgan
4059ee5118
Enable block-scoped-var eslint rule
2020-10-23 13:38:36 -04:00
Quincy Morgan
04b3a788f9
Add lint:fix script
...
Enable no-trailing-space eslint rule
2020-10-23 13:24:44 -04:00
Quincy Morgan
9464ec5d87
Enable arrow-spacing eslint rule
2020-10-23 12:05:52 -04:00
Quincy Morgan
380473033b
Enable no-duplicate-imports eslint rule
2020-10-23 12:02:37 -04:00
Quincy Morgan
081db7c7a6
Support filtering by multiple photo usernames
2020-10-19 16:27:07 -04:00
Quincy Morgan
a48c69331f
Merge branch 'develop' into photo-filter-temp
2020-10-15 13:38:15 -04:00
Quincy Morgan
a33ab44e81
Merge branch 'develop' into photo-filter-temp
...
# Conflicts:
# css/80_app.css
# modules/services/mapillary.js
2020-10-12 16:16:32 -04:00
Quincy Morgan
e659fdb58f
Merge pull request #7847 from mapillary/photo-filtering
...
Filtering for photo overlay layers
2020-10-12 16:01:10 -04:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
2fa64e7445
Switch from hyphen to slash for photo parameter separator (re: #6398 )
2020-10-04 20:17:44 -04:00
Quincy Morgan
ad54a6e140
Support opening iD with a Streetside or OpenStreetCam photo specified as a URL parameter ( close #6398 )
...
Bring the APIs for the three street level services closer in sync
2020-10-02 13:30:36 -04:00
Quincy Morgan
482d0902ac
Fix issues with Wikidata field
2020-09-24 10:27:35 -04:00
Quincy Morgan
bbbf401232
Add en fallback in coreLocalizer instead of utilDetect.browserLocales
...
Include all preferred and fallback langauges in coreLocalizer.localeCodes even if higher-priority ones have 100% string coverage
Fallback to the user's preferred languages instead of directly to English when querying OSM wikibase documentation and Wikidata (re: #7996 )
Add `lang` attribute to tag documentation text loaded from OSM wikibase or Wikidata (re: #7963 )
2020-09-23 16:15:34 -04:00
Quincy Morgan
5435082d9c
Revert t function to returning the plain string by default
...
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
32f8274929
Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963 )
...
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
21c86c6d6d
Re-add reading of mapillary image from URL (re: #7885 , #6398 )
2020-09-13 17:09:35 -04:00