[fix] correct city names in address autocomplete dropdown#28
[fix] correct city names in address autocomplete dropdown#28
Conversation
Autocomplete secondaryText uses CDPs (e.g. "Briarcliff, TX") instead of postal cities (e.g. "Austin, TX"). Fetch addressComponents via Place Details for each suggestion to get the correct locality. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
Place Details returns the same CDP name as autocomplete. Switch to the Geocoding API which normalizes addresses to USPS postal cities (e.g. "Austin" instead of "Briarcliff"). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
secondaryTextreturns Census Designated Place (CDP) names like "Briarcliff, TX" instead of the USPS postal city "Austin, TX" for addresses in those areasaddressComponentsvia Place Details for each suggestion (in parallel) to get the correctlocalityparseAddress(locality > sublocality > administrative_area_level_2)Test plan
🤖 Generated with Claude Code