sphrak / svenska-stader Goto Github PK
View Code? Open in Web Editor NEWSwedish cities in csv format with coordinates 🇸🇪
License: Other
Swedish cities in csv format with coordinates 🇸🇪
License: Other
for example
$ php -r '$r=file_get_contents("https://raw.githubusercontent.com/sphrak/svenska-stader/master/src/svenska-stader.csv");$l=explode("\n",trim($r));$k=str_getcsv($l[0]);unset($l[0]);foreach($l as $l){$v=str_getcsv($l);$v[3]=(float)$v[3];$v[4]=(float)$v[4];$d[]=array_combine($k,$v);}echo json_encode($d,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_THROW_ON_ERROR);' | pastebinit
currently prints https://pastebin.com/PFaDpH5V
Hello hej, there seem to be several errors and maybe omissions in the data.
Locality Valla is located in Municipality Katrineholm (correct) but County Västernorrland. This is clearly an error as Katrineholm is in Södermanland, as on the 7 other rows with Katrineholm.
When looking further, there are only 240 different Municipalities. Sweden currently have 290 municipalities. Are 50 municipalities missing as they don't have any locality?
On the other hand, the number of unique rows with Municipality and County are 440 which is much more than the 290. Katrineholm generate 2 rows in this list, 1 for the 7 localities with Katrineholm+Södermanland and 1 with Katrineholm+Västernorrland as first mentioned, but it appears there are many more rows with this type of error where the municipality is placed in the wrong county?
Maybe I've missed where the data comes from, but it appears there are many little things that could be fixed for the data to be correct and really useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.