-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from TaturanaMobi/hotfix/small-bugs
Hotfix/small bugs
- Loading branch information
Showing
52 changed files
with
1,456,281 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# FROM jshimko/meteor-launchpad:devbuild | ||
# FROM jshimko/meteor-launchpad | ||
FROM taturanamobi/meteor-launchpad | ||
FROM jshimko/meteor-launchpad:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016 Kelvin S. do Prado | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# Municípios Brasileiros [![Build Status](https://travis-ci.org/kelvins/Municipios-Brasileiros.svg?branch=master)](https://travis-ci.org/kelvins/Municipios-Brasileiros) | ||
|
||
Arquivos `SQL`, `CSV` e `JSON` contendo o código IBGE, nome do município, capital, código UF, UF, estado, latitude e longitude de todos (ou quase todos) os municípios brasileiros. Total de 5.570 registros. | ||
|
||
## Exemplos | ||
|
||
### Dados | ||
|
||
| Código IBGE | Nome do Município | Código UF | UF | Estado | Capital | Latitude | Longitude | | ||
|:-----------:|:-------------------:|:---------:|:--:|:-----------------:|:-------:|:--------:|:---------:| | ||
| 5200050 | Abadia de Goiás | 52 | GO | Goiás | 0 | -16.7573 | -49.4412 | | ||
| 3100104 | Abadia dos Dourados | 31 | MG | Minas Gerais | 0 | -18.4831 | -47.3916 | | ||
| 5200100 | Abadiânia | 52 | GO | Goiás | 0 | -16.1970 | -48.7057 | | ||
| 3100203 | Abaeté | 31 | MG | Minas Gerais | 0 | -19.1551 | -45.4444 | | ||
| 4314902 | Porto Alegre | 43 | RS | Rio Grande do Sul | 1 | -30.0318 | -51.2065 | | ||
|
||
### Exemplo SQL | ||
|
||
#### Estados | ||
|
||
```sql | ||
CREATE TABLE estados( | ||
codigo_uf INT NOT NULL, | ||
uf VARCHAR(2) NOT NULL, | ||
nome VARCHAR(100) NOT NULL, | ||
PRIMARY KEY (codigo_uf) | ||
); | ||
|
||
INSERT INTO estados VALUES | ||
(11, 'RO', 'Rondônia'), | ||
(12, 'AC', 'Acre'), | ||
(13, 'AM', 'Amazonas'), | ||
... | ||
``` | ||
|
||
#### Municípios | ||
|
||
```sql | ||
CREATE TABLE municipios( | ||
codigo_ibge INT NOT NULL, | ||
nome VARCHAR(100) NOT NULL, | ||
latitude FLOAT(8) NOT NULL, | ||
longitude FLOAT(8) NOT NULL, | ||
capital BOOLEAN NOT NULL, | ||
codigo_uf INT NOT NULL, | ||
PRIMARY KEY (codigo_ibge), | ||
FOREIGN KEY (codigo_uf) REFERENCES estados (codigo_uf) | ||
); | ||
|
||
INSERT INTO municipios VALUES | ||
(5200050, 'Abadia de Goiás', -16.7573, -49.4412, FALSE, 52), | ||
(3100104, 'Abadia dos Dourados', -18.4831, -47.3916, FALSE, 31), | ||
(5200100, 'Abadiânia', -16.197, -48.7057, FALSE, 52), | ||
... | ||
``` | ||
|
||
### Exemplo CSV | ||
|
||
#### Estados | ||
|
||
```csv | ||
codigo_uf,uf,nome | ||
11,RO,Rondônia | ||
12,AC,Acre | ||
13,AM,Amazonas | ||
... | ||
``` | ||
|
||
#### Municípios | ||
|
||
```csv | ||
codigo_ibge,nome,latitude,longitude,capital,codigo_uf | ||
5200050,Abadia de Goiás,-16.7573,-49.4412,0,52 | ||
3100104,Abadia dos Dourados,-18.4831,-47.3916,0,31 | ||
5200100,Abadiânia,-16.197,-48.7057,0,52 | ||
... | ||
``` | ||
|
||
### Exemplo JSON | ||
|
||
#### Estados | ||
|
||
```json | ||
[ | ||
{ | ||
"codigo_uf" : 11, | ||
"uf" : "RO", | ||
"nome" : "Rondônia" | ||
}, | ||
{ | ||
"codigo_uf" : 12, | ||
"uf" : "AC", | ||
"nome" : "Acre" | ||
}, | ||
{ | ||
"codigo_uf" : 13, | ||
"uf" : "AM", | ||
"nome" : "Amazonas" | ||
} | ||
] | ||
``` | ||
|
||
#### Municípios | ||
|
||
```json | ||
[ | ||
{ | ||
"codigo_ibge" : 5200050, | ||
"nome" : "Abadia de Goiás", | ||
"latitude" : -16.7573, | ||
"longitude" : -49.4412, | ||
"capital" : false, | ||
"codigo_uf" : 52 | ||
}, | ||
{ | ||
"codigo_ibge" : 3100104, | ||
"nome" : "Abadia dos Dourados", | ||
"latitude" : -18.4831, | ||
"longitude" : -47.3916, | ||
"capital" : false, | ||
"codigo_uf" : 31 | ||
}, | ||
{ | ||
"codigo_ibge" : 5200100, | ||
"nome" : "Abadiânia", | ||
"latitude" : -16.197, | ||
"longitude" : -48.7057, | ||
"capital" : false, | ||
"codigo_uf" : 52 | ||
} | ||
] | ||
``` | ||
|
||
**Nota**: caso encontre qualquer dado inconsistente ou tenha alguma sugestão por favor crie uma [issue](https://github.com/kelvins/Municipios-Brasileiros/issues) ou envie um [pull request](https://github.com/kelvins/Municipios-Brasileiros/pulls) diretamente. Obrigado a todos os [colaboradores](https://github.com/kelvins/Municipios-Brasileiros/graphs/contributors). :raised_hands: | ||
|
||
## Exportação dos Dados | ||
|
||
Existem diversas ferramentas para trabalhar com bancos de dados e exportar os dados em outros formatos como `CSV`, `JSON`, entre outros. | ||
Uma ferramenta que costumo utilizar com frequência é o [DBeaver](https://dbeaver.io/), pois além de ser multiplataforma ela é simples de usar e disponibiliza várias opções para a exportação dos dados. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
![banner](https://github.com/dr5hn/countries-states-cities-database/raw/master/.github/banner.png) | ||
|
||
# 🌍 Countries States Cities Database | ||
![release](https://img.shields.io/github/v/release/dr5hn/countries-states-cities-database?style=flat-square) | ||
![size](https://img.shields.io/github/repo-size/dr5hn/countries-states-cities-database?label=size&style=flat-square) | ||
|
||
Full Database of city state country available in JSON, SQL, XML, PLIST, YAML & CSV Format | ||
All Countries, States & Cities are Covered & Populated with Different Combinations & Versions. | ||
|
||
## Formats Available | ||
- JSON | ||
- SQL | ||
- XML | ||
- PLIST | ||
- YAML | ||
- CSV | ||
|
||
## Distribution Files Info | ||
File | JSON | SQL | XML | PLIST | YAML | CSV | ||
:------------ | :-------------| :-------------| :------------- |:-------------|:-------------|:------------- | ||
Countries | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | ||
States | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | ||
Cities | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | ||
Country+States | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | ||
State+Cities | :white_check_mark: | NA | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | ||
Country+State+Cities/World | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | NA | ||
|
||
## Demo | ||
https://dr5hn.github.io/countries-states-cities-database/ | ||
|
||
## Insights | ||
Total Countries : 247 <br> | ||
Total States/Regions : 4,854 <br> | ||
Total Cities/Towns : 142,083 <br> | ||
|
||
Last Updated On : 24th May 2020 | ||
|
||
## Notes | ||
``` | ||
This Free database does not guarantee for the complete list of world | ||
countries, states & cities. | ||
You can manually change the spelling mistakes, duplicates | ||
or add edit any records, which are incorrect. | ||
Reason behind making this repo: I ran through many websites to get | ||
perfect combination of state, city & countries. | ||
Some were with missing states, some with large filesize. | ||
So I thought to get it done on my own using PHP Script. | ||
``` | ||
|
||
## Contributions | ||
[Contibution Guidelines](https://github.com/dr5hn/countries-states-cities-database/blob/master/CONTRIBUTING.md) | ||
|
||
## Follow me at | ||
<a href="https://github.com/dr5hn/"><img alt="Github @dr5hn" src="https://img.shields.io/static/v1?logo=github&message=Github&color=black&style=flat-square&label=" /></a> <a href="https://twitter.com/dr5hn/"><img alt="Twitter @dr5hn" src="https://img.shields.io/static/v1?logo=twitter&message=Twitter&color=black&style=flat-square&label=" /></a> <a href="https://www.linkedin.com/in/dr5hn/"><img alt="LinkedIn @dr5hn" src="https://img.shields.io/static/v1?logo=linkedin&message=LinkedIn&color=black&style=flat-square&label=&link=https://twitter.com/dr5hn" /></a> | ||
|
||
## Suggestions / Feedbacks | ||
``` | ||
Suggestions & Feedbacks are Most Welcome | ||
gadadarshan[at]gmail[dot]com | ||
``` | ||
|
||
That's all Folks. Enjoy. |
Oops, something went wrong.