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)
- Host: GitHub
- URL: https://github.com/jsonzilla/cep_to_geo
- Owner: jsonzilla
- License: lgpl-3.0
- Created: 2021-07-24T15:38:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-11T19:47:18.000Z (about 3 years ago)
- Last Synced: 2025-03-22T04:27:12.479Z (10 months ago)
- Topics: cep, geocoding, google-maps, google-maps-api, location, maps, zip-code
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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
}
}
},