Addresses
GeoCode
The Address Geocoding API converts addresses into geographical coordinates (latitude and longitude), supporting multiple input formats.
POST
`/v1/address/beta/geocode`
Request Methods
Address String Format
For simple string-based address inputs:
Address Object Format
For structured address data:
Existing Address / Location Format
For existing PackageX addresses or locations:
Response Format
The API returns coordinates in a standardized format:
Error Scenarios
The API provides specific error responses for various failure cases:
- Missing address
- When the API cannot successfully parse an address
Reverse GeoCode
This endpoint converts geographic coordinates (latitude and longitude) into a structured address. The system first checks for existing addresses in the database before performing a new geocoding operation.
POST
`/v1/address/beta/reverse-geocode`
Required Parameters
Optional Parameters
Request Example
Response Format
The API returns coordinates in a structured format:
Error Scenarios
- When the API cannot successfully parse coordinates