enzet / map-machine

Python renderer for OpenStreetMap with custom icons intended to display as many map features as possible
MIT License
503 stars 31 forks source link

Support power_supply and socket icons #155

Open Cguy7777 opened 1 year ago

Cguy7777 commented 1 year ago

Rendering icons for various sockets (socket:<type>) would be wonderful. The main use would be identifying supported chargers at EV charging stations, but this would also be useful for indicating outlets at campsites, public phone chargers, or anywhere else with available power. Care should be taken so that socket:whatever=0 does not create misleading icons.

As an extra bonus, rendering the socket's power output (socket:whatever:output) adjacent to it would be very helpful for those looking for a place to plug in: if your car supports it, a 350 kW charger will get you back on the road a lot faster than an 50 kW charger.

power_supply is a generic tag to simply indicate if a feature has power available, often on camping sites; in the past this was used to indicate specific sockets, but this is deprecated. A lightning bolt icon (for yes), or lightning bolt with an X (for no) could show this.

enzet commented 1 year ago

@Cguy7777 Thank you the good issue!

I'm in the middle of transferring icons to a separate project Röntgen, so please check all the icon changes there.

According to Taginfo, the most popular values (with more than 1000 usages) of socket:* are

Tag Usages
socket:type2 42930
socket:typee 12818
socket:chademo 11004
socket:schuko 6191
socket:type1 3147
socket:tesla_supercharger 1291

I'll try to support them first.

enzet commented 1 year ago

@Cguy7777 I've started with the socket:type2. There is a connector_type_2 icon in the Röntgen project. Are you OK with this style?

connector_type_2

Cguy7777 commented 1 year ago

@enzet Yes, that looks quite nice. Thank you for working on this!

enzet commented 1 year ago

I've added icons to Röntgen icon set. I'm not sure about Tesla icon. Is it OK to have one connector type for Tesla connectors?

connectors

Cguy7777 commented 1 year ago

These icons look great! One minor note with the Type 1 icon: it might be more quickly recognizable if the protrusion on the bottom of the connector is included (pictured below). Type 1 connector

For the Tesla connectors, I recommend against using a single icon for all of them. I'm in the US, so I'm not as familiar with the situation elsewhere, but from what I can tell, it looks like this:

To summarize:

Socket North America Europe
tesla_supercharger Render as NACS Render as modified Type 2 (perhaps your icon)
tesla_supercharger_ccs ? Render as Type 2 Combo
tesla_destination Render as NACS Render as Type 2
tesla_standard Render as NACS ?
tesla_roadster Render as Tesla Roadster Render as Tesla Roadster

MapComplete has a table of sockets they support here.

In addition to Tesla connectors, the next two most important connectors to support would probably be Type 1 Combo (non-Tesla standard for DC charging in North America, although it looks like it will give way to NACS in the future) and Type 2 Combo (standard for DC charging in Europe).