{"id":78281,"date":"2017-07-10T12:55:59","date_gmt":"2017-07-10T12:55:59","guid":{"rendered":"http:\/\/www.esri.com\/arcgis-blog\/products\/product\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\/"},"modified":"2018-03-26T21:13:53","modified_gmt":"2018-03-26T21:13:53","slug":"best-practices-how-to-query-standard-geographies-branches","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches","title":{"rendered":"Best Practices: How to Query Standard Geographies Branches"},"author":4261,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[],"tags":[30101],"industry":[],"product":[36551,36601],"class_list":["post-78281","blog","type-blog","status-publish","format-standard","hentry","tag-geoenrichment","product-arcgis-online","product-developers"],"acf":{"short_description":"There have been a lot of questions coming to me lately about the best way to use the StandardGeographyQuery function in the GeoEnrichment...","flexible_content":[{"acf_fc_layout":"content","content":"<p>There have been a lot of questions coming to me lately about the best way to use the StandardGeographyQuery function in the GeoEnrichment REST API if a developer wants to help their end users find features in lower levels of geography. This is done by stringing together a few StandardGeographyQuery requests based on the input that the user provides. The example that I will walk through here is trying to find a random census tract in the state of California. This workflow is similar to the workflow used by Esri developed in applications like the Business Analyst Web Application.<\/p>\n<p>The first thing that we need is to confirm the proper name when querying the levels of geography. A list is provided in response to the \u201cStandardGeographyLevels\u201d request for the US:<\/p>\n<p><a href=\"http:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/Geoenrichment\/StandardGeographyLevels\/US\/census?f=pjson\">http:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/Geoenrichment\/StandardGeographyLevels\/US\/census?f=pjson<\/a><\/p>\n<p>This request will return a list that contains the IDs of all levels, as well as branches. While it is possible to query against a single level of geography, census tracts for example, the GeoEnrichment service data contains information which defines a hierarchy in order to help guide application developers and end users to the results they want. This hierarchy is defined in the \u201cbranches\u201d section of the response and will be discussed later in this post. Notice that the \u201clevels\u201d section of the response contains a field &#8220;isWholeCountry&#8221;. Each country will have one record returned which represents the entire country and it will have &#8220;&#8216;isWholeCountry&#8217; : true,&#8221;. The whole country level will be the first level into which we need to drill in order to get to our final result. In this case, US.WholeUSA is the ID of the level where this attribute is true. To find the most direct path to query census tracts, I need to know the ID for the census tracts level.<\/p>\n<p>If I search for \u201ccensus tracts\u201d in my browser, I find the following entry:<\/p>\n<pre>{\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"id\" : \"US.Tracts\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"name\" : \"Census Tracts\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"isWholeCountry\" : false,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"adminLevel\" : \"\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"singularName\" : \"Census Tract\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"pluralName\" : \"Census Tracts\"\n\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/pre>\n<p>From this record, I take the ID, which is \u201cUS.Tracts\u201d and perform a search for this value in my browser window. This will help me to find if there are any branches that lead me to the census tract level. My search returns:<\/p>\n<pre>{\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"id\" : \"USbySTbyCYbyTR\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"name\" : \"US by Tracts\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"levels\" : [ \"US.States\", \"US.Counties\", \"US.Tracts\" ]\n\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/pre>\n<p>This lets me know that census tract features each intersect only one feature in the counties level and that counties each intersect only one feature in the States level. The states, being the highest level listed in this branch, are all contained inside of the entire country.<\/p>\n<p>An example of using the branches to drill into the levels of geography to analyze a single feature can be demonstrated with the Business Analyst Web Application using the option of selecting a geography from the full list in the \u201cDefine Areas for Reports\u201d &gt; \u201cSelect Geography\u201d menu. I\u2019ve provided some screen shots of the Business Analyst Web Application to show this in action. First, I need to navigate through a menu of options where I will ultimately wind up with the option to pick from a list of geography levels. Step 1, I choose to \u201cDefine Areas for Reports\u201d and choose \u201cSelect Geography\u201d:<\/p>\n<p>Next, I choose to \u201cSelect from Full List\u201d:<\/p>\n<p>Being that it is a \u201cfull list\u201d, it will need to start with the list of geography levels, then drill into our desired level to get the list of features in that level. When the click for \u201cSelect from Full List\u201d is selected, the \u201cStandardGeographyLevels\u201d request, which is described above, is sent. The Business Analyst Web Application then associates each of the levels with an image and the result is here:<\/p>\n<p><a href=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/bao-full-list.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/bao-full-list-133x300.jpg\" alt=\"List of Standard Geographies in the Business Analyst web app\" width=\"133\" height=\"300\" \/><\/a><\/p>\n<p>Since, I am looking to pick from random census tracts, I click on the \u201cCensus Tracts\u201d. The Business Analyst Web Application uses the response from the StandardGeographyLevels request to query the branches which lead me to the \u201cUS.Tracts\u201d level. The only entry leading to the census tracts level is listed above. This results in one possible branch and is displayed in the application as a menu to \u201cSelect the State &gt; County &gt; Census Tracts\u201d:<\/p>\n<p><a href=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/CTBranch.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83395\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/CTBranch-181x300.png\" alt=\"\" width=\"181\" height=\"300\" \/><\/a><\/p>\n<p>When I click on the menu\u2019s drop down a request is executed which will list all states that fall within the entire country. Here is an example of the request:<\/p>\n<p><a href=\"https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=%5b%22US.WholeUSA%22%5d&amp;geographyIDs=%5b%2201%22%5d&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.States&amp;featureLimit=5000&amp;f=json\">https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=[&#8220;US.WholeUSA&#8221;]&amp;geographyIDs=[&#8220;01&#8221;]&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.States&amp;featureLimit=5000&amp;f=json<\/a><\/p>\n<p>California is listed in the drop down menu as an option for me to choose. The record for California from the response to the request above is here:<\/p>\n<pre>{\n\"attributes\" : {\n\"DatasetID\" : \"USA_ESRI_2017\",\n\"DataLayerID\" : \"US.States\",\n\"AreaID\" : \"06\",\n\"AreaName\" : \"California\",\n\"MajorSubdivisionName\" : \"California\",\n\"MajorSubdivisionAbbr\" : \"CA\",\n\"MajorSubdivisionType\" : \"State\",\n\"CountryAbbr\" : \"US\",\n\"Score\" : 100,\n\"ObjectId\" : 5\n}\n}<\/pre>\n<p>The next request that I send to the server will use some information from this record, like the DataLayerID and AreaID along with the DataLayerID of the counties level from the StandardGeographyLevels request, to ask for a list of all counties in the State of California:<\/p>\n<p><a href=\"https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=%5b%22US.States%22%5d&amp;geographyIDs=%5b%2206%22%5d&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.ZIP5&amp;featureLimit=5000&amp;f=pjson\">https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=[%22US.States%22]&amp;geographyIDs=[%2206%22]&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.Counties&amp;featureLimit=5000&amp;f=pjson<\/a><\/p>\n<p>Since there is another level of geography between the US.States level and the census tracts on this branch, this results in another drop-down in the menu where I can choose which county I want to search in:<\/p>\n<p><a href=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/CTBranch2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-83397\" src=\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2017\/07\/CTBranch2-171x300.png\" alt=\"\" width=\"171\" height=\"300\" \/><\/a><\/p>\n<p>The drop-down menu is populated with the names of each county in the State of California. I have decided that I am interested in a random area in San Bernardino County, so I search the list for \u201cSan Bernardino County\u201d. If looking at the response to my request, I find the following record for San Bernardino County:<\/p>\n<pre>{\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"attributes\" : {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"DatasetID\" : \"USA_ESRI_2017\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"DataLayerID\" : \"US.Counties\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"AreaID\" : \"06071\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"AreaName\" : \"San Bernardino County\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"MajorSubdivisionName\" : \"California\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"MajorSubdivisionAbbr\" : \"CA\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"MajorSubdivisionType\" : \"State\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"CountryAbbr\" : \"US\",\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"Score\" : 100,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"ObjectId\" : 36\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\n\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/pre>\n<p>From this record, I use the \u201cAreaID\u201d and \u201cDataLayerID\u201d with the help of the \u201cDataLayerID\u201d for Census Tracts from the \u201cStandardGeographyLevels\u201d request in the beginning, I am able to build a request which asks for all of the census tracts in San Bernardino County:<\/p>\n<p><a href=\"https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=%5b%22US.Counties%22%5d&amp;geographyIDs=%5b%2206071%22%5d&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.Tracts&amp;featureLimit=5000&amp;f=pjson\">https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/StandardGeographyQuery\/execute?langCode=en-us&amp;sourceCountry=US&amp;optionalCountryHierarchy=census&amp;geographyLayers=[&#8220;US.Counties&#8221;]&amp;geographyIDs=[&#8220;06071&#8221;]&amp;returnSubGeographyLayer=true&amp;subGeographyLayer=US.Tracts&amp;featureLimit=5000&amp;f=pjson<\/a><\/p>\n<p>I do not have a specific Census Tract in mind here, so picking a record at random, I am able to use the information in a record to create my enrich and createReport requests to get the demographic information of a random census tract in San Bernardino County, California:<\/p>\n<p><a href=\"https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/Geoenrichment\/Enrich?studyareas=%5b%7b%22sourceCountry%22:%22US%22,%22layer%22:%22US.ZIP5%22,%22ids%22:%5b%2292373%22%5d%7d%5d&amp;datacollections=Health&amp;returngeometry=true&amp;insr=&amp;outsr=&amp;locale=&amp;f=pjson\">https:\/\/geoenrich.arcgis.com\/arcgis\/rest\/services\/World\/GeoenrichmentServer\/Geoenrichment\/Enrich?studyareas=[{&#8220;sourceCountry&#8221;:&#8221;US&#8221;,&#8221;layer&#8221;:&#8221;US.Tracts&#8221;,&#8221;ids&#8221;:[&#8220;06071000303&#8221;]}]&amp;datacollections=Health&amp;returngeometry=true&amp;insr=&amp;outsr=&amp;locale=&amp;f=pjson<\/a><\/p>\n<p>Since I have \u201creturnGeometry=true\u201d, the polygon geometry will be returned along with the variables of the \u201cHealth\u201d data collection. This way, I can draw the Census Tract in my application and place it over my map as an area of interest.<\/p>\n<p>To recap, I can get a list of geography levels using the \u201cStandardGeographyLevels\u201d discovery method. From this list, I see possible branches in my data hierarchy and the proper ID for levels of geography in my country of interest. Then, I request a list of all of the features in one of the geography levels in a branch which will lead me to census tracts eventually, like \u201cUS.States\u201d. From the list of States, I can pick my state of interest and request a list of all of the features in the next subgeography level specified in that same branch, which is \u201cUS.Counties\u201d. I can dig one level further in this branch and get a list of all of the \u201cUS.Tracts\u201d contained in a county of my choice. Using the information from the results of my latest query, I can run enrich or create report to obtain demographic statistics for the area.<\/p>\n"}],"authors":[{"ID":4261,"user_firstname":"Chris","user_lastname":"Wilcox","nickname":"Chris W.","user_nicename":"cwilcox81","display_name":"Chris Wilcox","user_email":"cwilcox@esri.com","user_url":"","user_registered":"2018-03-02 00:15:51","user_description":"","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/10\/CWILCO-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Best Practices: How to Query Standard Geographies Branches<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Practices: How to Query Standard Geographies Branches\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-26T21:13:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\"},\"author\":{\"name\":\"Chris Wilcox\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/9ab4f0c2d8ffafa357924f1775577cd0\"},\"headline\":\"Best Practices: How to Query Standard Geographies Branches\",\"datePublished\":\"2017-07-10T12:55:59+00:00\",\"dateModified\":\"2018-03-26T21:13:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\"},\"wordCount\":8,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"Geoenrichment\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\",\"name\":\"Best Practices: How to Query Standard Geographies Branches\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2017-07-10T12:55:59+00:00\",\"dateModified\":\"2018-03-26T21:13:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best Practices: How to Query Standard Geographies Branches\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/9ab4f0c2d8ffafa357924f1775577cd0\",\"name\":\"Chris Wilcox\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/10\/CWILCO-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/10\/CWILCO-213x200.jpg\",\"caption\":\"Chris Wilcox\"},\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Best Practices: How to Query Standard Geographies Branches","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches","og_locale":"en_US","og_type":"article","og_title":"Best Practices: How to Query Standard Geographies Branches","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2018-03-26T21:13:53+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches"},"author":{"name":"Chris Wilcox","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/9ab4f0c2d8ffafa357924f1775577cd0"},"headline":"Best Practices: How to Query Standard Geographies Branches","datePublished":"2017-07-10T12:55:59+00:00","dateModified":"2018-03-26T21:13:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches"},"wordCount":8,"commentCount":0,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["Geoenrichment"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches","name":"Best Practices: How to Query Standard Geographies Branches","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2017-07-10T12:55:59+00:00","dateModified":"2018-03-26T21:13:53+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/\/uncategorized\/best-practices-how-to-query-standard-geographies-branches#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Best Practices: How to Query Standard Geographies Branches"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/9ab4f0c2d8ffafa357924f1775577cd0","name":"Chris Wilcox","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/10\/CWILCO-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2020\/10\/CWILCO-213x200.jpg","caption":"Chris Wilcox"},"url":""}]}},"text_date":"July 10, 2017","author_name":"Chris Wilcox","author_page":false,"custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2025\/08\/Newsroom-Keyart-Wide-1920-x-1080.jpg","primary_product":"ArcGIS Online","tag_data":[{"term_id":30101,"name":"Geoenrichment","slug":"geoenrichment","term_group":0,"term_taxonomy_id":30101,"taxonomy":"post_tag","description":"","parent":0,"count":19,"filter":"raw"}],"category_data":[],"product_data":[{"term_id":36551,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":36551,"taxonomy":"product","description":"","parent":0,"count":2419,"filter":"raw"},{"term_id":36601,"name":"Developers","slug":"developers","term_group":0,"term_taxonomy_id":36601,"taxonomy":"product","description":"","parent":0,"count":761,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-online","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/78281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/4261"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=78281"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/78281\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=78281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=78281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=78281"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=78281"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=78281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}