Code Monkey home page Code Monkey logo

svenska-stader's Introduction

Hi there 👋

svenska-stader's People

Contributors

mariahelenanoren avatar sphrak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

svenska-stader's Issues

a JSON version would be nice

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

Some errors

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.