-
Notifications
You must be signed in to change notification settings - Fork 1
Improve Geocode/Reverse geocode demo to show full API response #114
Description
What
Improve the Geocode / Reverse geocode demo (samples/localities-geocode/) to display the full API response in a structured block — address components, viewport, formatted address, etc. — similar to how Google Maps and Mapbox present their geocoding demos.
Reference demos:
- Google Maps: https://developers.google.com/maps/documentation/geocoding/overview
- Mapbox: https://docs.mapbox.com/playground/geocoding/
Raised by Adrien Landy — a Partoo developer also requested this.
Why
The current demo doesn't surface the full response, making it harder for developers to understand the data available from our Geocoding API. Competitors show the complete response in an interactive interface, setting a higher bar for developer experience. This has been requested multiple times internally and externally.
Boundaries
| In scope | Out of scope |
|---|---|
| Geocode demo improvement | Other API demos |
| Reverse geocode demo improvement | API changes |
| Display full response: address components, viewport, geometry, etc. | Full playground redesign |
| Interactive response viewer/block |
Approach
Update the Geocode and Reverse geocode demo to render the full JSON response in a structured, readable block (similar to Google/Mapbox playground style). Show address components, viewport, and other response fields clearly.
Risks
- Need to confirm the exact response fields to highlight.
Bucket
1 week — sample code change to surface response data that's already available.