<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 30/03/2023 18:13, NKA mapper wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHhSjynA2AuF806jsn0HL+wBYAWRSvVgZcGYZAVEOH52Yu2GzQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">tor. 30. mar. 2023 kl. 18:14 skrev Andy Townsend
<<a href="mailto:ajt1047@gmail.com" moz-do-not-send="true"
class="moz-txt-link-freetext">ajt1047@gmail.com</a>>:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<p>How do I know if an "amenity=charging_station" in the
OSM data is a "single charge point" or a "group of
chargers"?</p>
</div>
</blockquote>
<div>The intention is to not have a difference. Both a single
charger location and a multi-charger location is a place
where you could charge your vehicle, and the proposal is to
map them the same way. This is similar to a fuel station,
where I would tag one single pump, typically at a rural
location, as amenity=fuel. <br>
</div>
</div>
</div>
</blockquote>
<p>That would be a problem, as trying to use the same tag for
different physical objects always is in OSM. If I</p>
<p>gis=> select count(*) from [some database table] where amenity
= 'charging_station';<br>
count<br>
-------<br>
267<br>
(1 row)<br>
</p>
<p>How do I know what I am counting? How do I count just "single
charge points"? How do I count "groups of chargers"</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAHhSjynA2AuF806jsn0HL+wBYAWRSvVgZcGYZAVEOH52Yu2GzQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">
<div><br>
</div>
<div>Of course tags like capacity and socket would give
indications. </div>
</div>
</div>
</blockquote>
<p>If tagged, but plenty exist without those:
<a class="moz-txt-link-freetext" href="https://overpass-turbo.eu/s/1ta8">https://overpass-turbo.eu/s/1ta8</a><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAHhSjynA2AuF806jsn0HL+wBYAWRSvVgZcGYZAVEOH52Yu2GzQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">
<div>And if amenity=charging_station is tagged as an area
around a number of charge points, that would be a group. </div>
</div>
</div>
</blockquote>
<p>That'd need to be a spatially-aware query, and I wouldn't assume
that data consumers can easily do that. At the place where I
detect charging stations I don't have that capability:
<a class="moz-txt-link-freetext" href="https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L1492">https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L1492</a>
.<br>
</p>
<p>If the same tag must be used for both, the only way to tell
"single charge point" from "group of chargers" is to have a tag
that is set to indicate which is which. If "newtag=single" it
means it's a single charge point, if "newtag=group" it's a group,
and if "newtag" is not set, we don't yet know, and need to
encourage local mappers to add the tag.<br>
</p>
<p>Recycling centres are similar, and I handle them like this:
<a class="moz-txt-link-freetext" href="https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L1648">https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/style.lua#L1648</a>
, though in this case the extra tag ("recycling_type=centre" ), if
unset, suggests that we're just talking about a recycling bin not
a recycling centre.</p>
<p>Best Regards,</p>
<p>Andy</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>