Suggest completions for an address or business
GET /Platform/dtypes/suggest
Suggest completions for an address or business. Autocomplete for dtypes that have a provider.
dtype=address— fast text suggestions via the AWS place index.dtype=business— POI search (AWS geo-places v2) filtered tocategory, biased towardbias_lon/bias_latwhen given (callers with location context — e.g. a form's client address — pass it explicitly; defaults to the contiguous-US centroid).
Any other dtype returns supported=false with no suggestions.
AWS-side failures degrade to an empty list (logged at ERROR);
programming errors propagate so bugs surface loudly.
Query parameters
dtype: optional str.addressorbusiness; any other dtype is unsupported.q: optional str. The text typed so far (at least 3 characters).country: optional str. ISO country code for addresses (defaultUS).category: optional str. Business category forbusiness(defaultveterinarian).bias_lon: optional float. Longitude to bias business results toward.bias_lat: optional float. Latitude to bias business results toward.
Returns
DtypeSuggestResponse
supported: optional bool. False when the dtype has no suggestion provider.suggestions: optional List[DtypeSuggestion]. Suggestions, best first.
Example request
curl -X GET "https://api.hilus.ai/Platform/dtypes/suggest" \
-H "Authorization: Bearer $HILUS_API_KEY"