Smarty US Street Address API
Smarty US Street Address API https://smarty.com/docs/cloud/us-street-api
(fetch-many _ requests)
Retrieve a collection of US street address results from the API.
Retrieve a collection of US street address results from the API.
(fetch-one _ request)
Retrieve a single US street address result from the API.
Retrieve a single US street address result from the API.
(http-fetch-many client requests)
Uses client
to send a collection of address requests
to the Smarty API.
requests
should be a collection of HTTP input requests, described here:
https://smarty.com/docs/cloud/us-street-api#input-fields
Returns a vector with results at indexes corresponding to their position in
requests
. Each entry in the vector will be a vector of candidate addresses
returned by the API, or nil
if there was no matching response.
Uses `client` to send a collection of address `requests` to the Smarty API. `requests` should be a collection of HTTP input requests, described here: https://smarty.com/docs/cloud/us-street-api#input-fields Returns a vector with results at indexes corresponding to their position in `requests`. Each entry in the vector will be a vector of candidate addresses returned by the API, or `nil` if there was no matching response.
(http-fetch-one client request)
Uses client
to send a single address request
to the Smarty API.
request
should be an HTTP input request, described here:
https://smarty.com/docs/cloud/us-street-api#input-fields
Returns a vector of candidate addresses, or nil
if no candidate addresses
were found.
Uses `client` to send a single address `request` to the Smarty API. `request` should be an HTTP input request, described here: https://smarty.com/docs/cloud/us-street-api#input-fields Returns a vector of candidate addresses, or `nil` if no candidate addresses were found.
(parse-response n s)
Transform a sequence s
of maps containing :input_index
and
:candidate_index
into a vector of length n
of vectors in order of
:input_index
and with the sub-vectors in order of :candidate_index
. The
original maps will have their :input_index
and :candidate_index
keys
removed. Top-level-vector offsets without data will contain nil
.
Transform a sequence `s` of maps containing `:input_index` and `:candidate_index` into a vector of length `n` of vectors in order of `:input_index` and with the sub-vectors in order of `:candidate_index`. The original maps will have their `:input_index` and `:candidate_index` keys removed. Top-level-vector offsets without data will contain `nil`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close