[OSM-dev] iD news - 2.12.0 released 🎉

Bryan Housel bhousel at gmail.com
Mon Dec 10 14:54:23 UTC 2018


Sure, I can describe the logic in more detail.  

When I talk about “fields”, I mean the fields near the top of iD’s sidebar.  Users can still edit all the raw tags in the tag editor that appears below the fields.  

The purpose of this feature is not really to prevent someone who knows what they are doing from changing a tag value, but more to hint to users (especially newbies) “hey maybe you should not change that”.  

The protection should discourage people from changing the Name field just for fun, but also make sure that if a business re-brands (e.g. a Shell station changes to an Exxon station) someone changes all the tags and not just the Name that gets rendered.

The fields that can be protected are the “Name” and “Brand” fields.

Name
If the `name` tag has a value, and there is a `wikidata` or `brand:wikidata` tag with a value, and the “Brand” field is not being shown, the “Name” field will be readonly and have a tooltip that says:  "The “Name" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "All tags" section."

Brand
If the `brand` tag has a value and there is a `brand:wikidata` tag with a value, the “Brand” field will be readonly and have a tooltip that says:  "The “Brand" field is locked because there is a Wikidata tag. You can delete it or edit the tags in the "All tags" section.”


In practice it means that features with a `wikidata` tag (the closest thing we have in OSM to a stable identifier) will have the “Name" field readonly.  This includes things like places, landmarks, artworks, schools, etc.  

It also means that most features with a `brand:wikidata` tag will have the “Name" field readonly - this includes recognized brands like “McDonald’s”, “Starbucks” etc.  The exception to this is when iD displays both a “Name" and a “Brand" field, the “Name" field is unlocked and the “Brand" field is locked.  This is done on gas stations, car/motorcycle dealerships, hotels/motels - anything where it is common for the Name and Brand to be different  (`name=Route 22 Honda`, `brand=Honda`).


More details can be found on this ticket:
https://github.com/openstreetmap/iD/issues/5515 <https://github.com/openstreetmap/iD/issues/5515>

I also encourage everyone to try editing with iD and see how it works in practice.

Thanks,
Bryan



> On Dec 10, 2018, at 2:59 AM, Frederik Ramm <frederik at remote.org> wrote:
> 
> Hi,
> 
> On 10.12.2018 03:14, Bryan Housel wrote:
>> iD now displays linked data if a feature has a wikidata tag, and will
>> protect fields like name and brand from direct editing.
> 
> Can you elaborate on the logic behind this a bit more?
> 
> On first reading it sounds like if I set a wikidata tag on something, iD
> will load name and brand from wikidata and not allow editing of those
> fields but that certainly can't be right. Which fields exactly are
> protected, what does protection mean, and by what is this protection
> triggered?
> 
> Bye
> Frederik
> 
> -- 
> Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20181210/0c4b9c57/attachment.html>


More information about the dev mailing list