short_code is required for us to translate a region/location name to zip codes. We are able to get the short_code for denver region using mapbox geocoding API. However, short_code for Cayey(region in Puerto Rico territory) is missing in the same API response. Please see more details in the contract below.
Another observation is that the country for Cayey is shown as Puerto Rico instead of US.
Mapbox geocodong response for 'denver':
{
"context": [
{
"id": "region.10002699958017490",
"wikidata": "Q1261",
"short_code": "US-CO",
"text": "Colorado"
},
{
"id": "country.19678805456372290",
"wikidata": "Q30",
"short_code": "us",
"text": "United States"
}
]
}
Mapbox geocoding response for 'Cayey':
{
"context": [
{
"id": "region.11316909078893780",
"wikidata": "Q2307508",
"text": "Cayey"
},
{
"id": "country.16776721557498950",
"wikidata": "Q1183",
"short_code": "pr",
"text": "Puerto Rico"
}
]
}
Could mapbox team help me in this regard?