An open API service indexing awesome lists of open source software.

https://github.com/jsonzilla/cep_to_geo

Query geolocation with base of a brazilian zip code (cep)
https://github.com/jsonzilla/cep_to_geo

cep geocoding google-maps google-maps-api location maps zip-code

Last synced: 6 months ago
JSON representation

Query geolocation with base of a brazilian zip code (cep)

Awesome Lists containing this project

README

          

# cep2geo

Query geolocation with base of a brazilian zip code (cep)

```
$ python cep2geo.py -i -o
$ cep2geo_zippopotam.py -i -o
```

*Only need a cep per line!*

Input a csv file (Cep without hifen!):
```
88010000,"Rua Felipe Schmidt, até 348/349",Centro,3454,24
```

Output a csv file:
```
88010000,"Rua Felipe Schmidt, até 348/349",Centro,3454,24,-27.5957101,-48.5532068,APPROXIMATE,-27.5924921,-48.5462376,-27.600032,-48.5574976
```

## Question
Why have more information what one latitude and longitude?
Google Maps API return more information.

"geometry" : {
"bounds" : {
"northeast" : {
"lat" : -27.5848141,
"lng" : -48.9514556
},
"southwest" : {
"lat" : -27.7738787,
"lng" : -49.2029872
}
},
"location" : {
"lat" : -27.6728835,
"lng" : -49.1019233
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : -27.5848141,
"lng" : -48.9514556
},
"southwest" : {
"lat" : -27.7738787,
"lng" : -49.2029872
}
}
},