[Talk-GB] Hello world and automated change proposal: Add missing URL scheme on UK's Pubs websites

Dave F davefoxfac63 at btinternet.com
Mon Sep 28 14:25:25 UTC 2020


Three things to note:
SO3166-1=GB is misnomered & includes Northern Ireland. (As I found out, 
some contributors there get annoyed with UK wide edits). You may want to 
use area(id:3600058447,3600058437,3600058446); // England Wales Scotland 
instead.

Many pubs are mapped as ways/relations so node won't return the full 
amount. Use nwr instead.

If you need the output to be as individual nodes use 'out center' option.

area["ISO3166-1"=GB];
rel(pivot)->.UK;
nwr(area)[amenity=pub][website][website!~"http"];
out center;
.UK out geom;

DaveF

On 27/09/2020 16:28, Rodrigo Díez Villamuera wrote:
> Hi all,
>
> First of all, I would like to introduce myself on this email list and 
> to thank you all for your contributions to OSM. Great work!
>
> After some time using OSM as a user, I decided to make my first step 
> as a contributor, hence this email and the proposal inside.
>
> Please bear in mind that this is my first attempt to contribute with a 
> proposal and, although I have done my best reading the community 
> conventions and best practices, I am sure I have made some mistakes on 
> the way. Be merciful! :P
>
> To the point now.
>
> I am importing a subset of nodes from UK (those tagged with 
> amenity:pub) for a pet project.
>
> When analysing the data I realised that some of these nodes contain a 
> website: tag that does not contain an appropriate URL schema (http/https).
>
> Ie: www.mypub.com <http://www.mypub.com> rather than 
> http://www.mypub.com or https://www.mypub.com
>
> This goes in contradiction with the Wiki documentation for website. 
> <https://wiki.openstreetmap.org/wiki/Key:website>
>
> I created a proposal for a one-off, scoped, automated edit for these 
> nodes to find the appropiate scheme for the existing URL and retag the 
> nodes.
>
> I added the proposal to the Automated edits log. You can read it here 
> <https://wiki.openstreetmap.org/wiki/Automated_edits/rodrigodiez/Add_missing_URL_scheme_to_pub_websites_in_UK>.
>
> Just wanted to share the proposal with the UK community, gather your 
> feedback, comments and advises on how to proceed from here
>
> Thanks in advance!
>
>
>
>
>
>
>
>
> --
> Rodrigo Díez Villamuera
>
> w: http://rodrigodiez.io
> t: @rodrigodiez_pro
> p: 00 44 7513 638225
>
>
> _______________________________________________
> Talk-GB mailing list
> Talk-GB at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-gb/attachments/20200928/e54fa714/attachment.htm>


More information about the Talk-GB mailing list