{"id":9899,"date":"2023-10-03T08:19:21","date_gmt":"2023-10-03T15:19:21","guid":{"rendered":"https:\/\/www.serviceobjects.com\/docs\/?page_id=9899"},"modified":"2023-10-03T08:19:25","modified_gmt":"2023-10-03T15:19:25","slug":"ac-place-response","status":"publish","type":"page","link":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/","title":{"rendered":"AC &#8211; Place Response"},"content":{"rendered":"\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#AC-PlaceResponse-VariationsObjectforPlaces\">Variations Object for Places<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#AC-PlaceResponse-Place\">Place<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"AC-PlaceResponse-VariationsObjectforPlaces\">Variations Object for Places<\/h2>\n\n\n\n<ul class=\"is-style-no-bullets-indented-list wp-block-list\">\n<li>In the following code block we can see that &#8220;variations&#8221; is a parameter passed into the function when the populate event is detected.&nbsp; Additional logic can be added in this function, for example, and can help deal with any additional business logic that is needed to be implemented.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Listen for Events Example<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DOTSGlobalAddressComplete.listen(\"populate\", function(address, variations) {\n    document.getElementById(\"LabelJSON\").innerText = variations.Label;\n});<\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"AC-PlaceResponse-Place\">Place<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>PID<\/td><td>String<\/td><td>The specific record ID that is used when SELECTing results. This ID allows you to look up more than just the recommended result.<\/td><\/tr><tr><td>Name<\/td><td>String<\/td><td>The name of the place the result returned.<\/td><\/tr><tr><td>Label<\/td><td>String<\/td><td>A more descriptive label of the place with the name and more relevant address info.<\/td><\/tr><tr><td>Type<\/td><td>String<\/td><td>Type of Locality result returned. Possible values are Locality1, Locality2, Locality3, or Locality4.<\/td><\/tr><tr><td>Thoroughfare<\/td><td>String<\/td><td>The thoroughfare of the address. Will be &#8220;null&#8221; with this search type.<\/td><\/tr><tr><td>Locality1<\/td><td>String<\/td><td>The Locality1 result returned.<\/td><\/tr><tr><td>Locality1_PID<\/td><td>String<\/td><td>The associated PID if a Locality1 result is returned.<\/td><\/tr><tr><td>Locality2<\/td><td>String<\/td><td>The Locality2 result returned.<\/td><\/tr><tr><td>Locality2_PID<\/td><td>String<\/td><td>The associated PID if a Locality2 result is returned.<\/td><\/tr><tr><td>Locality3<\/td><td>String<\/td><td>The Locality3 result returned.<\/td><\/tr><tr><td>Locality3_PID<\/td><td>String<\/td><td>The associated PID if a Locality3 result is returned.<\/td><\/tr><tr><td>Locality4<\/td><td>String<\/td><td>The Locality4 result returned.<\/td><\/tr><tr><td>Locality4_PID<\/td><td>String<\/td><td>The associated PID if a Locality4 result is returned.<\/td><\/tr><tr><td>AdminArea1<\/td><td>String<\/td><td>The AdminArea1 result returned.<\/td><\/tr><tr><td>AdminArea1_PID<\/td><td>String<\/td><td>The associated PID if a AdminArea1 result is returned.<\/td><\/tr><tr><td>AdminArea2<\/td><td>String<\/td><td>The AdminArea2 result returned.<\/td><\/tr><tr><td>AdminArea2_PID<\/td><td>String<\/td><td>The associated PID if a AdminArea2 result is returned.<\/td><\/tr><tr><td>AdminArea3<\/td><td>String<\/td><td>The AdminArea3 result returned.<\/td><\/tr><tr><td>AdminArea3_PID<\/td><td>String<\/td><td>The associated PID if a AdminArea3 result is returned.<\/td><\/tr><tr><td>AdminArea4<\/td><td>String<\/td><td>The AdminArea4 result returned.<\/td><\/tr><tr><td>AdminArea4_PID<\/td><td>String<\/td><td>The associated PID if a AdminArea4 result is returned.<\/td><\/tr><tr><td>AdminArea5<\/td><td>String<\/td><td>The AdminArea5 result returned.<\/td><\/tr><tr><td>The associated PID if a AdminArea5 result is returned.<\/td><td>String<\/td><td>The associated PID if a AdminArea5 result is returned.<\/td><\/tr><tr><td>Country<\/td><td>String<\/td><td>The country of result returned.<\/td><\/tr><tr><td>Country_ISO3<\/td><td>String<\/td><td>The&nbsp;ISO 3166-1 Alpha-3 Country Code&nbsp;of the country associated to the address selected.<\/td><\/tr><tr><td>Country_PID<\/td><td>String<\/td><td>The&nbsp;associated PID&nbsp;of the country associated to the address selected.<\/td><\/tr><tr><td>Continent<\/td><td>String<\/td><td>The continent of the result returned.<\/td><\/tr><tr><td>Continent_PID<\/td><td>String<\/td><td>The associated PID of the continent returned.<\/td><\/tr><tr><td>Latitude<\/td><td>String<\/td><td>The latitude coordinate of the centroid of the result returned<\/td><\/tr><tr><td>Longitude<\/td><td>String<\/td><td>The longitude coordinate of the centroid of the result returned<\/td><\/tr><tr><td>CoordinateType<\/td><td>String<\/td><td>The precision level of the coordinate returned. Will be &#8220;centroid&#8221; for this search type<\/td><\/tr><tr><td>PostalCodes<\/td><td>String<\/td><td>A list of all associated postal codes for the result returned.<br><br><br><br><em>*Note, currently we will be returning US zip codes but will be expanding this to other countries as we expand on our coming soon search types.<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Variations Object for Places Listen for Events Example Place Field Type Description PID String The specific record ID that is used when SELECTing results. This ID allows you to look up more than just the recommended result. Name String The name of the place the result returned. Label String A more descriptive label of the [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"parent":2321,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9899","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AC - Place Response<\/title>\n<meta name=\"description\" content=\"Variations Object for Places Place Variations Object for Places In the following code block we can see that &quot;variations&quot; is a parameter passed into the\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AC - Place Response\" \/>\n<meta property=\"og:description\" content=\"Variations Object for Places Place Variations Object for Places In the following code block we can see that &quot;variations&quot; is a parameter passed into the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-03T15:19:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/\",\"name\":\"AC - Place Response\",\"isPartOf\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2023-10-03T15:19:21+00:00\",\"dateModified\":\"2023-10-03T15:19:25+00:00\",\"description\":\"Variations Object for Places Place Variations Object for Places In the following code block we can see that \\\"variations\\\" is a parameter passed into the\",\"breadcrumb\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Global Address Complete\",\"item\":\"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AC &#8211; Place Response\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AC - Place Response","description":"Variations Object for Places Place Variations Object for Places In the following code block we can see that \"variations\" is a parameter passed into the","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"AC - Place Response","og_description":"Variations Object for Places Place Variations Object for Places In the following code block we can see that \"variations\" is a parameter passed into the","og_url":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2023-10-03T15:19:25+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/","url":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/","name":"AC - Place Response","isPartOf":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#website"},"datePublished":"2023-10-03T15:19:21+00:00","dateModified":"2023-10-03T15:19:25+00:00","description":"Variations Object for Places Place Variations Object for Places In the following code block we can see that \"variations\" is a parameter passed into the","breadcrumb":{"@id":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/ac-place-response\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Global Address Complete","item":"https:\/\/test.serviceobjects.com\/docs\/dots-global-address-complete\/"},{"@type":"ListItem","position":3,"name":"AC &#8211; Place Response"}]},{"@type":"WebSite","@id":"https:\/\/test.serviceobjects.com\/docs\/#website","url":"https:\/\/test.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/test.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/test.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/test.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/9899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=9899"}],"version-history":[{"count":1,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/9899\/revisions"}],"predecessor-version":[{"id":9917,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/9899\/revisions\/9917"}],"up":[{"embeddable":true,"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/2321"}],"wp:attachment":[{"href":"https:\/\/test.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=9899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}