GET /location
GET/v1/location
Returns a location object with region, city, street address, and lat/lng coordinates.
PARAMETERS
| Name | Type | Default | Description |
|---|---|---|---|
| country | string | random | ISO 3166-1 alpha-2 country code: GH, NG, KE, ZA, RW |
| count | int | 1 | Number of records to return. Min 1, max 100. |
EXAMPLE REQUEST
GET /v1/location?country=GH&count=1EXAMPLE RESPONSE
{
"country": "GH",
"count": 1,
"data": [{
"region": "Greater Accra",
"city": "Accra",
"street": "14 Liberation Road",
"coordinates": {"lat": 5.6037, "lng": -0.1870}
}]
}