PageSourceSearch

https://docs.addresszen.com/assets/js/e2718eb0.9c3422b8.js

js addresszen.com collected 2026-10-03 23:46:43 UTC 3,861 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_atlas_docs_zen=globalThis.webpackChunk_atlas_docs_zen||[]).push([[2869],{4056(e,n,s){s.d(n,{R:()=>d,x:()=>o});var t=s(2155);const i={},r=t.createContext(i);function d(e){const n=t.useContext(r);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),t.createElement(r.Provider,{value:n},e.children)}},7905(e,n,s){s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>d,metadata:()=>t,toc:()=>l});const t=JSON.parse('{"id":"cli/find","title":"azn find & resolve","description":"Address autocomplete: two-step by design. Useful when you need to pin a specific address from partial info before using it downstream.","source":"@site/docs/cli/find.mdx","sourceDirName":"cli","slug":"/cli/find","permalink":"/docs/cli/find","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"azn find & resolve","sidebar_label":"find & resolve","sidebar_position":7},"sidebar":"cli","previous":{"title":"phone","permalink":"/docs/cli/phone"}}');var i=s(5723),r=s(4056);const d={title:"azn find & resolve",sidebar_label:"find & resolve",sidebar_position:7},o=void 0,a={},l=[{value:"<code>azn find &lt;query&gt;</code>",id:"azn-find-query",level:2},{value:"<code>azn resolve &lt;id&gt;</code>",id:"azn-resolve-id",level:2},{value:"Agent pattern",id:"agent-pattern",level:2}];function c(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.p,{children:"Address autocomplete: two-step by design. Useful when you need to pin a 
1specific address from partial info before using it downstream."}),"\n",(0,i.jsx)(n.h2,{id:"azn-find-query",children:(0,i.jsx)(n.code,{children:"azn find <query>"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"GET /autocomplete/addresses"}),"."]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Flag"}),(0,i.jsx)(n.th,{children:"Description"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"--country <iso3>"})}),(0,i.jsx)(n.td,{children:"Limit suggestions to one country, by ISO-3 code (for example USA, GBR)"})]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"TTY (human):"})," prints a numbered list of suggestions with their ids."]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Non-TTY (agent):"})," emits suggestions as JSON:"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-json",children:'{\n  "count": 2,\n  "suggestions": [\n    { "id": "ABC123", "suggestion": "1600 Amphitheatre Pkwy, Mountain Vie
1w, CA" },\n    { "id": "DEF456", "suggestion": "1601 Amphitheatre Pkwy, Mountain View, CA" }\n  ]\n}\n'})}),"\n",(0,i.jsx)(n.h2,{id:"azn-resolve-id",children:(0,i.jsx)(n.code,{children:"azn resolve <id>"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"GET /autocomplete/addresses/{id}/usa"}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["Returns the resolved address as ",(0,i.jsx)(n.code,{children:"result"}),", in US format for addresses in any country. On a TTY, prints the address lines."]}),"\n",(0,i.jsx)(n.h2,{id:"agent-pattern",children:"Agent pattern"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:'# Pick the top hit and resolve\nID=$(azn find "1600 amphitheatre" | jq -r \'.suggestions[0].id\')\nazn resolve "$ID"\n'})})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.