Cities: Skylines

Cities: Skylines

287 ratings
OpenStreetMap Import - generate roads from OSM with street names and road-type selection
3
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
190.098 KB
2 Jan, 2020 @ 11:53am
9 Jan, 2020 @ 12:05pm
13 Change Notes ( view )

Subscribe to download
OpenStreetMap Import - generate roads from OSM with street names and road-type selection

Description
This mod will add a button in the "Map Editor" which opens a panel for importing OSM data from https://openstreetmap.org.

I found an OSM import mod which was not working for me, so I fixed it and added some features.

Added Features
  • select road-types to build according to OSM data (also gives you a rough estimate of node counts and limit)
  • roads are being named correctly (as long as the way element in the OSM data has a name tag)
Short instructions
  • go to http://terrain.party and download the heightmap of your desired region
  • in the downloaded zip file you will find a text file with the exported coordiates
  • go to openstreetmap.org and click on Export
  • enter the same coordinates as in the textfile
  • use the overpass-api.de link to download large datasets
  • rename file to map.osm and move it into the Documents folder (or enter the correct file path in the mod in-game)
  • enter "2.5" in the "tiles to boundary" field to only draw roads the inner 25 tiles, use "4.5" to make roads on all 81 tiles
For more detailed instructions how to use please see original mod: https://github.com/adur1990/Open-Cities-Map

Todo
  • avoid too short road segments (especially on intersections)
  • avoid two-roads side by side, when osm data contains multiple tracks for a road
  • maybe allow selecting which type of roads should be made in CS - currently it's using hard-coded defaults
  • better estimates for node counts (current estimates are way higher than actual number of nodes produced)
Source code of this mod:
https://github.com/grilly86/Open-Cities-Map

Thanks to the original authors:
lxteo: https://github.com/lxteo/Cities-Skylines-Mapper
adur1990 (Artur): https://github.com/adur1990/Open-Cities-Map
Popular Discussions View All (3)
7
30 Jan, 2021 @ 6:34am
Nodes as main problem - OSM Data is perfect for CS BUT ...yeah BUT. Fix OSM Data. A community Solution!
Alexander
1
4 Feb @ 3:19am
Holes everywhere after Import
VacuumTube
0
21 Feb, 2022 @ 5:29pm
***FIX FOR IMPORT ROADS BUTTON NOT SHOWING UP***
Lance McPants
178 Comments
Del'Sky 12 May @ 8:46pm 
Please, make a version to CS2!
app 1 May @ 6:09pm 
Is this still working ?
kyuzoaoi 27 Apr @ 12:08pm 
@xentrix1024, how to find the scale factor of 1.041666? I can't find it.
Saplaiceen 22 Feb @ 8:10pm 
if you use skydark i suggest scaling the map to 7km and when you use OSM you change the scale factor to 1.06 for better scaling and accuracy
xentrix1024 19 Feb @ 9:32am 
I also realized that some roads appear as oneway when they should not.
The solution is to remove all <tag k="oneway" v="no"/> tags from your osm file before using it. The mod disregards the "no" and creates a one way street.
xentrix1024 17 Feb @ 8:39am 
If the roads are placed off scale, here is my solution that just worked:
Use a scale factor of 1.041666

The reason is that I used the heightmap.png and map.osm from https://heightmap.skydark.pl/ that assumes you have a 17.28km map. I thought this mod assumed maps of 18km, so it needs some scaling.
18/17.28=1.041666 which aligned my streets PERFECTLY!!!
Sparks1176 2 Feb @ 12:38pm 
can someone tell me where the files go now that we use Skydark, thanks
ExpedientFalcon 25 Nov, 2023 @ 7:32pm 
I really want this to work well, but currently it seems to have issues with creating glitchy/unselectable nodes. Though it is amazing how much currently works. Maybe I'll poke at the source code and see if I can fix up some of the issues...
Chrissy 3 Nov, 2023 @ 2:29am 
please bring this out for cities skylines 2
Cr3aM 28 Sep, 2023 @ 6:19am 
Waiting for updated mod and instructions :(