Liking cljdoc? Tell your friends :D

democracyworks.smartystreets.us-street

Smarty US Street Address API

https://smarty.com/docs/cloud/us-street-api

Smarty US Street Address API

https://smarty.com/docs/cloud/us-street-api
raw docstring

APIcljprotocol

fetch-manyclj

(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-oneclj

(fetch-one _ request)

Retrieve a single US street address result from the API.

Retrieve a single US street address result from the API.
source

base-urlclj

source

http-fetch-manyclj

(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.
sourceraw docstring

http-fetch-oneclj

(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.
sourceraw docstring

parse-responseclj

(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`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close