GithubHelp home page GithubHelp logo

localitati's Introduction

Despre

O bază de date de 13.749 localități, de la sate, adunate

☁️ Baza de date

📝 CSV

Toate orasele și satele în format CSV de tipul

Longitudine | Latitudine | Denumire | Județ | Județ auto | Populație | Regiune

Nota: pentru a putea integra cu Google Maps trebuie sa folosit Y,X ex:

23.57,46.07,"Alba Iulia","Alba","AB",65091,"Centru"

https://maps.google.com/maps?q=46.07,23.57

Conține 13756 de înregistrări valabile în anul 2002.

📝 JSON

Toate orasele și satele în format JSON de tipul

type Oras = {
    x: number;
    y: number;
    nume: string;
    judet: string;
    judetAuto: string;
    populatie: number;
    regiune: string;
};

// Fisierele: orase.json, orase.min.json
type OraseJSON = Array<Oras>;

// Fisierele: orase-dupa-judet.json, orase-dupa-judet.min.json
type OraseDupaJudetJSON = Map</** Judet */ string, Oras>;

// Fisierele: orase-dupa-judet-auto.json, orase-dupa-judet-auto.min.json
type OraseDupaJudetAutoJSON = Map</** Judet Auto */ string, Oras>;

Fisierele JSON sunt generate de generate-json.js din fisierul orase.csv. Vezi codul sursa pentru mai multe detalii.

💩 SQL

🚨 Diferenta intre csv si .sql, foloște CSV

$ mysql -u root -p localitati < judete-orase.sql

Exemple

http://hazzardweb.net/2013/04/localitatile-si-judetele-din-romania-in-sql/

:trollface: Surse

💖 Contribuitori

Vezi contribuitori

localitati's People

Contributors

ellixmmer avatar ieugen avatar motoras avatar necenzurat avatar rakucmr avatar saenai255 avatar

Stargazers

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

Watchers

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

localitati's Issues

Typo - double space in city name

Double space in city name:
(3583, 13, 63401, '25.7880513679511840', '45.8646621301703730', 'Sfântu Gheorghe', 'Centru'),
(judete-orase.sql)

Baza de date nouă.

Pentru ca sunt multe bube cu asta, ce parere aveti sa ii facem un update cu cea de la INSSE?

Vreun format preferat?

JSON
XML???WHY?!!!
CSV
TSV
SQL?

Asociere judet - localitate

Vreu sa fac astfel incat doar membrii care apartin unei localitati sa poata avea acces la postarile din localiatea + judetul respectiv. Imi poti oferi vreo sugestie despre cum pot asocia localitatea cu judetul din moment ce nu au nici un atribut comun?

Ce licență au datele?

Salut,

Vreau să folosesc datele într-un proiect Apache și eventual să contribui la ele pe viitor.
Pentru asta mă interesează să știu ce licență au.

Am văzut că sunt mai multe proiecte, ar fi fain ca toate să aive licență.

Eugen

Updates

Is this data still valid in 2016?

Sectoare Bucuresti

Exista o mica greseala: Municipiul Bucuresti este trecut in lista de localitati, dar de fapt ar trebui trecute sectoarele, municipiul Bucuresti fiind conform organizarii SIRUTA de nivel 2.

Duplicate entries

I spotted 912 duplicated entries, for example:
12318 | 27.86 | 46.50 | albesti | VASLUI | VS | 1171.0 | Nord-Est
27.55 | 46.70 | albesti | VASLUI | VS | 239.0 | Nord-Est
22.51 | 47.32 | almasu mic | BIHOR | BH | 552.0 | Nord-Vest
22.14 | 47.17 | almasu mic | BIHOR | BH | 209.0 | Nord-Vest

Most probably they were inserted from different data sources at different points in time.
I think it would be good to drop all duplicates, and keeping the ones with the maximum population value.

I'm open to discussion if there is anything I misunderstood.

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.