https://github.com/jhowbhz/address-api
Is a simple API develop in PYTHON and Flask, to integration in LocationIQ for free user :)
https://github.com/jhowbhz/address-api
api api-address free python
Last synced: about 1 year ago
JSON representation
Is a simple API develop in PYTHON and Flask, to integration in LocationIQ for free user :)
- Host: GitHub
- URL: https://github.com/jhowbhz/address-api
- Owner: jhowbhz
- Created: 2021-04-04T21:06:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T22:49:36.000Z (over 5 years ago)
- Last Synced: 2025-06-23T00:42:13.490Z (about 1 year ago)
- Topics: api, api-address, free, python
- Language: Python
- Homepage: https://contrateumdev.com.br/
- Size: 4.88 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Geolocation FreeAPI
Is a simple API develop in PYTHON and Flask, to integration in LocationIQ for free user :)
### How to teste API
Endpoint demo Request GET:
```
https://address.contrateumdev.com.br/api/autocomplete?search=ana%20alvarenga%20campos,%20belo%20horizonte
```
Response SUCCESS:
```json
{
"address": {
"city": "Contagem",
"country": "Brazil",
"country_code": "br",
"county": "Microrregião Belo Horizonte",
"postcode": "32072330",
"road": "Rua Gaforina",
"state": "Minas Gerais",
"state_district": "Região Geográfica Intermediária de Belo Horizonte",
"suburb": "Petrolândia"
},
"boundingbox": [
"-19.9188292",
"-19.9179392",
"-44.1064442",
"-44.0996876"
],
"display_name": "Região Metropolitana de Belo Horizonte, Região Geográfica Intermediária de Belo Horizonte, Minas Gerais, Southeast Region, 32072330, Brazil",
"lat": "-19.9183173",
"licence": "https://locationiq.com/attribution",
"lon": "-44.1001843",
"osm_id": "224298752",
"osm_type": "way",
"place_id": "141466939"
}
```
### How to consume API in $.POST Jquery
```javascript
function getData()
{
$.post({
method: 'GET',
url: 'https://address.contrateumdev.com.br/api/autocomplete?search=ana%20alvarenga%20campos,%20belo%20horizonte',
success: function(resultado, status, xhr) {
if (resultado) {
console.log(resultado)
}else{
console.log(resultado)
}
},
error: function(data) {
console.log(data.error)
}
})
}
```