| address required | string Example: address=2282 W Camino Alto St, Springfield, MO 65810 the address for which the soundscore should be retrieved. |
params = {'address': '2282 W Camino Alto St, Springfield, MO 65810' } url = 'https://api.howloud.com/address' headers = {'x-api-key': '<YOUR API KEY>'} r = requests.get(url, params=params, headers=headers) json = r.json() print(r['result']['score'])
{- "status": "OK",
- "request": {
- "lat": null,
- "lng": null
}, - "result": {
- "airports": 0,
- "traffictext": "Active",
- "localtext": "Calm",
- "airportstext": "Calm",
- "score": 80,
- "traffic": 18,
- "scoretext": "Active",
- "local": 0
}
}| lat | number Example: lat=37.13397 latitude |
| lng | number Example: lng=-93.32604 longitude |
params = { 'lng': '-93.3', 'lat': '37.12' } url = 'https://api.howloud.com/score' headers = {'x-api-key': '<YOUR API KEY>'} r = requests.get(url, params=params, headers=headers) res = r.json() print(res['result'][0]['score'])
{- "status": "OK",
- "request": {
- "lat": null,
- "lng": null
}, - "result": {
- "airports": 0,
- "traffictext": "Active",
- "localtext": "Calm",
- "airportstext": "Calm",
- "score": 80,
- "traffic": 18,
- "scoretext": "Active",
- "local": 0
}
}| type required | string Enum: "airports" "local" "score" "traffic" Example: airports type of tile to retrieve |
| z required | integer Example: 14 z coordinate of the tile (wgs84) |
| x required | integer Example: 2622 x coordinate of the tile (wgs84) |
| y required | integer Example: 5719 y coordinate of the tile (wgs84) |
url = 'https://api.howloud.com/tiles/airports/12/1195/1565.png' headers = {'x-api-key': '<YOUR API KEY>'} r = requests.get(url, params=params, headers=headers)
| lat | number Example: lat=37.13397 latitude |
| lng | number Example: lng=-93.32604 longitude |
params = { 'lng': '-93.3', 'lat': '37.12' } url = 'https://api.howloud.com/v2/score' headers = {'x-api-key': '<YOUR API KEY>'} r = requests.get(url, params=params, headers=headers) res = r.json() print(res['result'][0]['score'])
{- "status": "OK",
- "request": {
- "lat": null,
- "lng": null
}, - "result": {
- "airports": 0,
- "traffictext": "Active",
- "localtext": "Calm",
- "airportstext": "Calm",
- "score": 80,
- "traffic": 18,
- "scoretext": "Active",
- "local": 0
}
}| type required | string Enum: "airports" "local" "score" "traffic" Example: airports type of tile to retrieve |
| z required | integer Example: 14 z coordinate of the tile (wgs84) |
| x required | integer Example: 2622 x coordinate of the tile (wgs84) |
| y required | integer Example: 5719 y coordinate of the tile (wgs84) |
url = 'https://api.howloud.com/v2/tiles/airports/12/1195/1565.png' headers = {'x-api-key': '<YOUR API KEY>'} r = requests.get(url, params=params, headers=headers)