mapbox / mapbox-sdk-js

A JavaScript client to Mapbox services, supporting Node, browsers, and React Native
Other
709 stars 185 forks source link

Geocoding V6 API Using Structured Input Does Not Support Secondary Address #489

Open Stefanough opened 2 months ago

Stefanough commented 2 months ago

I'm using the V6 API via the SDK version 0.16.0 and would like to utilize the structured input option. However, I cannot find a way to include a secondary_address parameter either on its own as a structured field or as part of the address input string. Both strategies for accessing the API with a structured query fail to include it in the response.

Is there a way to use structured input in V6 that allows for the inclusion of a secondary address in both the request and response?

Also, I'm the author of the TypeScript interface for the V6 API. I'd be happy to update that package to include secondary_address as a known feature in both the response and the structured input if/when it's added to the SDK.

Thanks!