Power networks/Guidelines/Country page
The template below provides a structure for documenting the mapping of energy networks in each country. To create a new country page, simply copy and paste the template. You can see an example of such template application here : Power networks/Tanzania.
Instructions
PowerNetworksCountryInfobox
Change the two letter of the template (ZZ in "{{PowerNetworksCountryInfobox|ZZ|") with the two-letter code of the country you would like to add.
Example for a complete box :
{{PowerNetworksCountryInfobox|TZ| |additional_wikipedia=[[w:Energy in Tanzania|Energy in Tanzania]] |additional_network_generation_capacity=1,602 MW (Tanesco 2020<ref name="Tanzania Power System Master Plan 2020">xxx</ref>) |additional_network_powerline_length=5,895 km (Tanesco 2020<ref name="Tanzania Power System Master Plan 2020"></ref>) |network_frequency=50 Hz |network_transmission_voltages_kv=400 - 330 (proposed) - 220 - 132 - 66 - 33 }}
State of the map
Take a JOSM screenshot of the country based on Bing Image.
You might need to upload the image through this page : Special:Upload. Important note for new OSM Wiki users : if you have just created your account, you need to make 10 edits in order to upload an image.
Please name your file as following : "State of High-Voltage Network Map in Name_of_country.png"
You should also change the "license" section :
== {{int:license-header}} == {{Bing image}}
You might use {{Esri image}} instead of {{Bing image}} if needed.
Operators
Simply add a row like "{{PowerNetworksOperatorRow|name=operator|wikipedia=wiki page name|wikidata=Q99999|tagvalue=operatorname|website=http://www.visitme.world}}" to the wikicode to insert an operator, as shown in the example below.
{{PowerNetworksOperatorHeader}} {{PowerNetworksOperatorRow|name=TANESCO|wikipedia=TANESCO|wikidata=Q4050564|tagvalue=TANESCO|website=http://www.tanesco.co.tz}} ____ ADD AN OPERATOR ROW HERE ____ |}
The PowerNetworksOperatorRow parameters are the following :
- name : Name of the operator
- wikidata : Wikidata identifier (e.g. : wikidata=Q182)
- wikipedia : Name of the wikipedia page
- wikipedia_lang : Language of the wikipedia page if not English (e.g. : wikipedia_lang=de)
- tagvalue : value used for
name=*
tag on OpenStreetMap (defaults to the template’s "name" parameter if not specified)
See also templates details : Template:PowerNetworksOperatorRow and Template:PowerNetworksOperatorHeader
Interconnections
Simply add a row like "{{PowerNetworksInterconnectionRow|country=the_country_name|name=|year_commissioning=|technology=|voltage=|osm_local_end=|osm_foreign_end=|osm_circuit={{Way|xxx}}|comments=xxx}} |} to the wikicode to insert an interconnection, as shown in the example below.
{{PowerNetworksInterconnectionHeader}} {{PowerNetworksInterconnectionRow|country=Kenya|name=Kenya-Tanzania|year_commissioning=|technology=|voltage=400 kV|osm_local_end_way=360708929|osm_foreign_end_way=578140339|osm_circuit= {{Relation|17610416}}|comments=}} ____ ADD AN INTERCONNECTION ROW HERE ____ |}
Notice : you can use "osm_local_end=xxx" for non-preformatted text, or "osm_local_end_way=1234" or "osm_local_end_relation=1234" to use predefined canvas for an OSM item (for instance : 1234 1234). The same logic also applies to "osm_foreign_end" and "osm_circuit".
Note : "node" is not yet available for predefined canvas.
See also template details : Template:PowerNetworksInterconnectionRow and Template:PowerNetworksInterconnectionHeader
To help you finding the international connections, you can :
- Go to one of this page that gather all cross-border lines by country : Africa, Asia and Oceania, Europe, South and North America
- use the following overpass query
Cross-border line overpass query
Replace ZZ with the desired country code

[out:json][timeout:1000];
area["ISO3166-1:alpha2"=ZZ]->.searchArea;
(way["power"="line"] (area.searchArea);way["power"="cable"] (area.searchArea);)->.power_ways;
node(w.power_ways:1,-1)->.total_line_end;
node.total_line_end(area.searchArea)->.total_inside_country;
(node.total_line_end;-node.total_inside_country;)->.foreign_ends;
foreach.foreign_ends (
(way(bn).power_ways;.lineset;)->.lineset;
);
.lineset; out geom;
Template
The following template can be copy-pasted when creating a new energy networks country page. Check all country pages here.
{{PowerNetworksCountryInfobox|ZZ| |additional_wikipedia= |additional_network_generation_capacity= |additional_network_powerline_length= |network_frequency=... Hz |network_transmission_voltages_kv= 666 - 333 - ... }} <small>''This page has been created through the [[Power networks/Guidelines/Country page|power networks country page template]]. Check the template page for more information on how to complete it.''</small> = High-voltage Electrical Network = == State of the map == [[File:State of High-Voltage Network Map in XXXXX.png|800px]] == Network description == === Voltages and frequency === '''Frequency : xx Hz''' {{PowerNetworksVoltageHeader}} {{PowerNetworksVoltageRow|network=Transmission|voltage=999 kV|comments=|appearance=}} {{PowerNetworksVoltageRow|network=Transmission|voltage=99 kV|comments=|appearance=}} |} === Operators === {{PowerNetworksOperatorHeader}} {{PowerNetworksOperatorRow|name=operator|wikipedia=wiki page name|wikidata=Q99999|tagvalue=operatorname|website=http://www.visitme.world}} |} === Interconnections === {{PowerNetworksInterconnectionHeader}} {{PowerNetworksInterconnectionRow|country=the_country_name|name=|year_commissioning=|technology=|voltage=|osm_local_end=|osm_foreign_end=|osm_circuit=|comments=xxx}} |} === Planned projects === * ... == Data Sources == {{PowerNetworksDatasourceHeader}} {{PowerNetworksDatasourceRow|source=xxx|license=?|date=|osm_suitable=no|comments=-}} |} ''It is also possible, if a data source does not have a compatible license, to officially request permission from the data producer to use the data for grid mapping in OpenStreetMap. If you do so, please mention it below to inform other users. Indicate who made the request, to whom, when, and what the response was. Also share a link to the sent email (for example on GitHub) and the received reply. Mention this request in the comment column of the table above.'' * Example : Request by USERNAME to OPERATOR on DATASET_NAME [2025-MM-DD]. Positive/Negative answer received on 2025-MM-DD. See mails : https://xxx.github == Network statistics == {{PowerNetworksCountryStatistics|ZZ|show=openinframap-grid-summary}} === Power line === {{PowerNetworksCountryStatistics|ZZ|show=openinframap-powerline-table}} === Electricity generation === {{PowerNetworksCountryStatistics|ZZ|show=openinframap-powerplant-table}} == Mapping process and community == === Mapping success stories === ''Success stories are designed to highlight important contributions. Have you significantly improved the cartography of a country (added a new line, a power station, etc.)? Don't be shy, let us know below. '' * Example : NAME [DATE YYYY-MM-DD]: My success stories in words. === Encountered problems and places to improve === * .... === Use of mapping strategies === ''Mapping strategies refer to [[Power networks/Guidelines#Mapping strategies]]. They are used for a methodical improvement of the OSM database. Once you have fully applied a strategy in this country, you should add or update your name, the date, the strategy, and a comment below. This way, other users can see whether it is worthwhile to carry out further investigations.'' * Example : Search for "Unfinished major power lines" - ''last time applied by XXX [2025-MM-DD]'' * .... - ''last time applied by XXX [2025-MM-DD]'' ==References== {{reflist}} [[Category:ZZNameOfCountryZZ]][[Category:Power]][[Category:Infrastructure]]