Address API
The LiquidCommerce Address API provides comprehensive address validation, standardization, and geocoding services optimized for beverage alcohol delivery and shipping
Address API Overview
It leverages Google Places API to offer address autocomplete functionality and retrieve geographical coordinates, enhancing the accuracy of shipping addresses and enabling location-based services.
Key Features
Address autocomplete using Google Places API
Geocoding to obtain latitude and longitude for addresses
Validation of shipping addresses
Support for international addresses
Authentication
Before using the API, you need to obtain an access token from the Authentication API. Include this token in the Authorization
header of all API requests:
Authorization: Bearer <YOUR_ACCESS_TOKEN>
Error Handling
The API uses standard HTTP response codes to indicate the success or failure of requests. In case of an error, the response body will contain a JSON object with more details about the error.
Rate Limiting
The API is subject to rate limiting to ensure fair usage and maintain performance. If you exceed the rate limit, you'll receive a 429 (Too Many Requests) response.
Best Practices
Use the autocomplete endpoint to provide real-time suggestions as users type their address.
Always use the place ID returned by the autocomplete endpoint to fetch detailed address information.
Store both the formatted address and the geocoding data (latitude and longitude) for each validated address.
Implement proper error handling to manage cases where address validation fails.
Google Places API Key
Last updated