Features
- Address Geocoding: Convert addresses into geographic coordinates
- Airport Code Lookup: Find airport locations by IATA or ICAO codes
- Structured Responses: Consistent response format with detailed location information
- Global Coverage: Supports locations worldwide
Authentication
All requests must include a valid JWT token in theAuthorization header:
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | The address or location to geocode (e.g., “1600 Amphitheatre Parkway, Mountain View, CA” or “JFK”) |
Response
200 OK - Successful geocoding
200 OK - Airport Code Lookup
400 Bad Request - Invalid Input
401 Unauthorized
404 Not Found
429 Too Many Requests
500 Internal Server Error
Endpoints
Geocode an Address
Converts a human-readable address into geographic coordinates and structured location data.Examples
Geocoding an Address
Looking up an Airport by Code
Response Format
All successful responses follow this structure:| Field | Type | Description |
|---|---|---|
| message | string | Status message (empty if successful) |
| data | object | Response data |
| - address | object | Location information |
| - city | string | City name |
| - state | string | State or region name |
| - country | string | Two-letter country code |
| - lat | number | Latitude coordinate |
| - long | number | Longitude coordinate |
Error Handling
Errors follow a standard format:Common Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid input |
| 401 | Unauthorized - Invalid token |
| 404 | Not Found - Address not found |
| 500 | Internal Server Error |
Rate Limiting
The API is rate limited to protect service quality. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.
Best Practices
- Cache results when possible to reduce API calls
- Handle errors gracefully and implement retry logic for transient failures
- Validate addresses before sending them to the API
- Use HTTPS for all requests to ensure data security