Why Migrate
- Standard response envelope — consistent structure for every response
- camelCase fields — follows modern JSON conventions
- ISO 8601 dates —
YYYY-MM-DDinstead ofDD-MMM-YY - Machine-readable error codes — branch on
errorCodeinstead of parsing messages - New coordinates endpoint — generate charts from lat/lng without a geocoding key
Breaking Changes
Renamed Fields
Renamed Endpoints
Step-by-Step Migration
1. Update the base URL
2. Change the authentication header
HD-Geocode-Key header remains the same for location-based endpoints.
3. Update the date format
4. Update response parsing
v2 wraps the chart data in adata field:
result.success before accessing result.data.

