GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/StandardGeographyQuery
The GeoEnrichment service provides a helper method that returns standard geography IDs and features for the supported geographic levels.
The most common workflow for this service is to find a FIPS (standard geography ID) for a geographic name. For example, you can use this service to find the FIPS for the county of San Diego which is 06073. You can then use this FIPS ID within the GeoEnrichment service study area definition to get geometry and optional demographic data for the county. This study area definition is passed as a parameter to the GeoEnrichment service to return data defined in the enrichment pack and optionally return geometry for the feature.
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
string | An access token with the required privileges. | |||
string |
| The output response format, either json, HTML, or XML. | ||
string |
| The source country for the query. | ||
string |
| The dataset within a specific country. | ||
string |
| Sets which data source to use within a defined country. | ||
[string] |
| The standard geography layers to query. | ||
[string] |
| The IDs for the standard geography layers to query. Required if | ||
string |
| The text to query within specified standard geography layers. Required if | ||
boolean |
| Returns all the subgeographic areas that are within a parent geography. | ||
string |
| Returns all subgeographic areas within a parent geography. | ||
string |
| Filters the results of the subgeography features that are returned by a search. | ||
number |
| Requests the output geometries in a specified spatial reference system. | ||
boolean |
| Includes the geometries associated with each feature in a response. | ||
boolean |
| Returns the center point for each feature in the response. | ||
integer |
| Sets the level of generalization in the area representations of an administrative boundary or standard geographic data layer. | ||
boolean |
| Utilizes fuzzy search logic if text is provided in the | ||
integer |
| Limits the number of features that are returned from the | ||
integer |
| Starts the results on the specified number of the record. | ||
string |
| The language for the results of a query. | ||
string |
| Returns only requested fields. | ||
boolean |
| Returns a count of features within a parent geography. |
Required parameters
token
An access token with the required privileges.
- ArcGIS Location Platform: Not supported
- ArcGIS Online: premium:user:geoenrichment
token=<ACCESS_TOKEN>
To use HTTP headers instead of the token
parameter, set the following:
GET <SERVICE_REQUEST> HTTP/1.1
Host: <SERVICE_DOMAIN>
X-Esri-Authorization: Bearer <ACCESS_TOKEN>
Learn more about access tokens and privileges in the Security and authentication developer guide.
Optional parameters
sourceCountry
Optional parameter to specify the source country for the search. Use this parameter to limit the search and query of standard geographic features to one country. This parameter supports both the two-digit and three-digit country codes illustrated in the coverage table.
Examples
Example 1 – Set source country to the United States:
source
Example 2 – Set the source country to Canada:
source
Additional notes
- The list of available countries and their associated IDs are listed in the GeoEnrichment coverage topic. This list can be obtained, programmatically, by querying the Countries discovery method:
optionalCountryDataset
Optional parameter to specify a specific dataset within a defined country.
For example—in Japan, we offer datasets from different providers. One such dataset is provided by Esri Japan. We are able to query geographic features directly from that dataset.
Example
https
2023
&f=pjson&return
optionalCountryHierarchy
Optional parameter to specify a specific hierarchy within a defined country.
GeoEnrichment has the concept of a hierarchy, a tag for indicating which data source to use. The hierarchy tag can be passed in the optional
parameter to specify a non-default data source. For example, in the U.S. the esri2024 hierarchy is the default and indicates the latest data based on the Census 2020 boundaries. If this parameter is blank, the esri2024 hierarchy will be used. The esri2023 hierarchy is based on the 2020 census boundaries and Esri's updated demographics for the year 2023 and can be passed to override the default hierarchy.
Example
Return a state boundary from the esri2023 hierarchy based on boundaries from the 2020 decennial census and Esri's updated demographics for the year 2023.
https
geographyLayers
Optional parameter to specify which standard geography layers are being queried or searched. If this parameter is not provided, all layers within the defined country will be queried.
Examples
Example 1 – Limit the search and query to all Canadian provinces:
geography
Example 2 – Limit the search and query to all U.S. counties and census places (Cities and Towns):
geography
Example 3 – Search and query all global city names:
geography
Example 4 – Search and query all country names:
geography
Additional notes
- The syntax of this parameter should be defined in a JSON array.
- If this parameter is not provided, the operation will take longer, as all layers within the defined country will be queried.
- You can define one or multiple layers to be queried.
- If
source
parameter is blank, at least one layer must be defined in this parameterCountry
geographyIDs
Required if geography
is not set. Specifies which IDs for the standard geography layers are being queried or searched. You can use this parameter to return attributes and/or geometry for standard geographic areas for administrative areas where you already know the ID, for example, if you know the Federal Information Processing Standard (FIPS) Codes for a U.S. state or county; or, in Canada, to return the geometry and attributes for a Forward Sortation Area (FSA).
Examples
Example 1 – Return the state of California where the geography
parameter is set to geographyLayers=[“US.States”]:
geography
Example 2 – Return two US ZIP Codes where the geography
parameter is set to geographyLayers=[“US.ZIP5”]:
geography
Additional notes
- The syntax of this parameter should be defined in a JSON array.
- You can provide one or many IDs in the array.
- You must define at least one layer in the
geography
parameter if you use this parameter to query features by ID.Layers - Only matched features will be returned from the layers defined in the
geography
parameter.Layers
geographyQuery
Required if geography
is not set. Queries and searches the standard geography layers specified. You can use this parameter to query and find standard geography features that meet an input term—for example, a list of all the U.S. counties that contain the word orange
. The geography
parameter can be a string that contains one or more words.
Example
Return all the counties that contain the word “orange” where geographyLayers=[“US.Counties”]:
geography
Search terms
A query is broken up into terms and operators. There are two types of terms: Single Terms and Phrases.
A Single Term is a single word such as "Redlands" or "Riverside".
A Phrase is a group of words surrounded by double quotes such as "Orange County".
Multiple terms can be combined together with Boolean operators to form a more complex query (see below).
Fields
Geography search supports fielded data. When performing a search, you can either specify a field or use search through all fields.
You can search any field by typing the field name followed by a colon ":" then the term you are looking for.
For example, to search for Orange County in California you could construct the query as follows:
Name
or
Name
or
"
The following fields are supported in geography
:
Field | Description |
---|---|
ID | Geography ID—for example, |
NAME | Geography NAM—for example, |
MajorSubdivisionName | Major subdivision name—for example, |
MajorSubdivisionAbbr | Major subdivision abbreviation—for example, |
MajorSubdivisionID | Major subdivision ID—for example, |
MajorSubdivision | Major subdivision ID, name and abbreviation—for example, |
Wildcard searches
The search supports single and multiple character wildcard searches within single terms (not within phrase queries).
To perform a single character wildcard search, use the "?" symbol.
To perform a multiple character wildcard search, use the "*" symbol.
The single character wildcard search looks for terms that match that with the single character replaced. For example, to search for "San" or "Sen" you can use the search:
S?n
Multiple character wildcard search looks for 0 or more characters. For example, you can use the search to find all cities that begin with “San Fran”:
San Fran*
You can also use the wildcard search in the middle of a term:
S*n
Fuzzy searches
Fuzzy searches are based on the Levenshtein Distance or Edit Distance algorithm. To perform a default fuzzy search, you can set the use
parameter to true. You can also explicitly set a fuzzy search with the geography
syntax by using the tilde symbol "~" at the end of a Single Term.
For example, a term similar in spelling to "County" uses the fuzzy search:
Count~
This search will find terms like “County”.
Using the tilde symbol "~" at the end of a single word, rather than explicitly setting the use
parameter, you can use fuzzy match for only one word in a multiple search term.
In the following example, only the word “orange” will be searched with fuzzy matching:
orange~ county
An additional (optional) numeric parameter can be specified after the tilde symbol ("~") to set the similarity tolerance. The value is between 0 and 1; with a value closer to 1, only terms with a higher similarity will be matched.
For example, if you only want to match terms with a similarity of 0.0 or higher, you can set the fuzzy search as follows:
count~0.8
The default that is used if the optional similarity number is not provided is 0.5.
Boolean Operators
Boolean operators allow terms to be combined through logic operators. The search supports AND, "+", OR, NOT and "-" as Boolean operators. Boolean operators must be ALL CAPS.
In geography
, the AND operator is the default conjunction operator. This means that if there is no Boolean operator between two or more terms, the AND operator is used. The AND operator matches items where both terms exist anywhere in the list of standard geography features. The symbol "&" can be used in place of the word AND.
Because the AND operator is used by default, to search for standard geography features that have “Orange” and “County” in their names, you can use the following query:
Orange County
You can also insert the operator and yield the same results:
"
The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union with using sets. The symbol "||" can be used in place of the word OR.
To search for features that contain either "Orange County" or "Orange" use the following query:
"orange county" orange
or
"orange county" O
The "+" or required operator requires that the term after the "+" symbol exist somewhere in the attribute of a standard geography feature.
To search for features that must contain "Orange" and may contain "County" use the following query:
+
The NOT operator excludes features that contain the term after NOT. The symbol "!" can be used in place of the word NOT.
To search for features that contain "orange" but not "county" use the following query:
"orange" NO
Grouping
Search supports using parentheses to group clauses to form subqueries. This can be useful if you want to control the Boolean logic for a query.
To search for either "Orange" or "Riverside" and "CA" use the following query:
(
Search supports using parentheses to group multiple clauses to a single field.
To search for a feature that contains both the word "Orange" and the phrase "County" use the query:
NAME
Escaping Special Characters
Search supports escaping special characters that are part of the query syntax. The available special characters are as follows:
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \
To escape these characters, use the \ before the character.
Additional notes
- Use the
geography
parameter to define which layers are being searched.Layers - You can search more than one layer if the
geography
parameter is provided with multiple layers.Layers - To achieve optimal performance, it is strongly recommended that at least one layer is defined in the
geography
parameter.Layers - If
source
is blank, at least one layer must be defined in theCountry geography
parameter.Layers - If no
geography
are provided, all standard geography layers will be searched withinLayers source
. This will adversely affect performance.Country - If the
use
parameter is set to false, a standard text search is performed for all text submitted with theFuzzy Search geography
parameter.Query - If the
use
parameter is set to true, all words submitted withFuzzy Search geography
will be searched with fuzzy logic.Query - Searches within the geography query are not case sensitive
returnSubGeographyLayer
Use this optional parameter to return all the subgeographic areas that are within a parent geography. For example, you could return all the U.S. counties for a given U.S. state or you could return all the Canadian postal areas (FSAs) within a Census Metropolitan Area (city).
When this parameter is set to true, the output features will be defined in the sub
. The output geometries will be in the spatial reference system defined by out
.
Default value
false
The output geometries will not be returned with each feature in the response.
Example
Request the output geometries in the response:
return
Additional notes
- If
return
is set to true, you must define aSub Geography Layer sub
Geography Layer
subGeographyLayer
Use this optional parameter to return all the subgeographic areas that are within a parent geography—for example, you could return all the U.S. counties within a given U.S. state or you could return all the Canadian postal areas (FSAs) within a Census Metropolitan Areas (city) feature.
Examples
Example 1 - Request U.S. county features to be returned within the defined U.S. states when geographyLayers=[“US.States”]:
sub
Example 2 - Request Canadian FSAs features (postal areas) to be returned within the defined metropolitan areas geographyLayers=[“ CAN.CMACA”]:
sub
Additional notes
- You can only set this parameter if
return
is set to true.Sub Geography Layer - The list of available standard geography levels and their associated IDs is listed in the coverage section.
- If
return
is set to true, this parameter is no longer optional; you must define aSub Geography Layer sub
.Geography Layer
subGeographyQuery
Optional parameter to filter the results of the subgeography features that are returned by a search term. You can use this parameter to query and find subgeography features that meet an input term.
This parameter is used to filter the list of subgeography features that are within a parent geography—for example, you may want a list of all the ZIP Codes that are within “San Diego County” and filter the results so that only ZIP Codes that start with “921” are included in the output response. The subgeography query is a string that contains one or more words.
Example
Return all the ZIP Codes that start with “921”:
sub
Additional notes
- The syntax and supported operations for
sub
are the same asGeography Layer geography
.Layer - Consult the
geography
parameter documentation to get information on supported search operators.Query - The
sub
can only be defined ifGeography Layer return
is set to true and aSub Geography Layer sub
is defined.Geography Layer - If the
use
parameter is set to false, a standard text search is performed for all text submitted with theFuzzy Search sub
parameter.Geography Query - If the
return
parameter is set to true, all words submitted withSub Geography Layer sub
will be searched with fuzzy logic.Geography Query - Searches within the geography query are not case sensitive.
out SR
Optional parameter to request the output geometries in a specified spatial reference system.
When return
is set to true, this optional parameter can be specified to explicitly indicate the spatial reference system of the output geometry. The parameter value may be specified as the well-known ID describing the projected coordinate system or geographic coordinate system.
The standard latitude and longitude-based geographic coordinate system based on the WGS 1984 datum will be used.
Example
Specify the output geometry in the Web Mercator (Auxiliary Sphere) projected coordinate system based on the WGS 1984 datum:
out
Additional notes
- For a list of valid WKID values, see Projected coordinate systems and Geographic coordinate systems.
returnGeometry
Optional parameter to request the output geometries in the response.
When this parameter is set to true, the output geometries associated with each feature will be included in the response. The output geometries will be in the spatial reference system defined by out
.
The output geometries will not be returned with each feature in the response.
Example
Request the output geometries in the response:
return
Additional notes
- Requesting output geometries can significantly increase the payload size of the output response which will increase the amount of time it takes to receive the response and negatively affect the speed and performance of any client applications consuming the service.
returnCentroids
Optional parameter to request the output geometry to return the center point for each feature. Use this parameter to return all the geometries as points—for example, you could return all U.S. ZIP Code centroids (points) rather than providing the boundaries.
When this parameter is set to true, the output features will be returned as points. The output geometries will be in the spatial reference system defined by out
.
Example
Request the output point geometries in the response:
return
Additional notes
- The center of each point will be returned for standard geographic areas.
- This parameter can only be set to true if the
return
parameter is also set to true.Geometry
generalization Level
Optional integer parameter that specifies the level of generalization or detail in the area representations of the administrative boundary or standard geographic data layers. Values must be whole integers from 0 through 2, where 0 is most detailed and 2 is most generalized.
Default value
0
Examples
Example 1 - Request the most detailed output geometry:
generalization
Example 2 - Request the most generalized output geometry:
generalization
Additional notes
-
A
generalization
of 0 will return the most detailed and precise polygon area features.Level -
Bandwidth "cost", for detailed features, will be greater and may lead to performance issues with many client applications depending on the number and size of the features in the query of the service request.
-
A
generalization
of 2 will produce a smaller and less detailed polygon.Level -
Less detailed features may not look as precise or match the shoreline of basemaps.
useFuzzySearch
Optional parameter to define if text provided in the geography
parameter should utilize fuzzy search logic. Fuzzy searches are based on the Levenshtein Distance or Edit Distance algorithm.
Using this approach will also help find matches for common misspellings—for example, the state of California can be found if the state name is spelled incorrectly with Californa
.
The output response has a Score field that specifies how similar the output attribute is to the input text. Values range from 0 to 100. A score of 100 indicates a perfect string match.
Example
use
Additional notes
- If this parameter is set to false, a standard text search is performed for all text submitted with the
geography
parameter.Query - If this parameter is set to true, all words submitted with
geography
will be searched with fuzzy logic.Query - More discussion about the fuzzy search capabilities are found in the
geography
parameter documentation.Query
featureLimit
Optional integer value where you can limit the number of features that are returned from the geography
parameter.
Example
Request the output geometries in the response:
feature
Additional notes
- The Standard Geography Query service has a maximum of 5000 features.
- The
feature
parameter cannot exceed this maximum.Limit - The
feature
used with theLimit feature
parameter supports pagination of StandardGeographyQuery results.Offset
featureOffset
Start the results on the number of the record specified.
This parameter supports pagination of StandardGeographyQuery results in combination with the featureLimit parameter.
langCode
Optional parameter that specifies the language you wish to receive your GeoEnrichment results. The availability to use this parameter is determined by the data which is available within your study area.
Example
Request a result to be returned in Portuguese:
lang
returnCountOnly
Optional parameter that returns a count of features within a parent geography. For example, return a count of census tracts within a state.
Example 1
Return a count of Census Tracts in California:
Request
https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery?sourcecountry=US&geographylayers=US.States&geographyids=06&returnsubgeographylayer=true&subgeographylayers=US.Tracts&returncountonly=true&f=json
JSON response
{"results":[{"layerID":"US.Tracts","featureCount":9110}],"messages":[]}
Additional notes
- This parameter can be used together with the
return
and theSub Geography Layer sub
parameters.Geography Layer
Response status
For a list of error codes and details, go to Error codes.
Response details
{
"geographyLevels": [
{
"countryID": "<countryID>",
"countryName": "<countryName>",
"datasets": [
{
"datasetID": "<datasetID>",
"branches": [
{
"id": "<id>",
"name": "<name>",
"levels": ["<level>"]
}
],
"levels": [
{
"id": "<id>",
"name": "<name>",
"isWholeCountry": "<boolean>",
"adminLevel": "<adminLevel>",
"singularName": "<singularName>",
"pluralName": "<pluralName>",
"defaultGeneralizationLevel": "<integer>",
"featureCount": "<integer>"
}
]
}
],
"hierarchies": [
{
"ID": "<ID>",
"wholeCountryLevel": "<wholeCountryLevel>",
"wholeCountryGeographyId": "<wholeCountryGeographyId>",
"branches": [
{
"id": "<id>",
"name": "<name>",
"levels": ["<level>"]
}
],
"autoScales": [
{
"level": "<level>",
"scale": "<number>"
}
],
"levels": [
{
"id": "<id>",
"name": "<name>",
"isWholeCountry": "<boolean>",
"adminLevel": "<adminLevel>",
"singularName": "<singularName>",
"pluralName": "<pluralName>",
"defaultGeneralizationLevel": "<integer>",
"featureCount": "<integer>"
}
]
}
]
}
],
"messages": []
}
Examples
Get a list of available geographic boundary data layers
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/StandardGeographyLevels/Canada?f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
Return the province of Ontario in Canada by its Census ID
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=CA&geographylayers=["CAN.PR"]&geographyids=["35"]&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns the attributes for all matching province IDs.
- No geometry is returned by default.
Return two U.S. ZIP codes and return the polygon geometry for each feature
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.ZIP5"]&geographyids=["92129","92126"]&returnGeometry=true&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
- Returns the attributes and geometry for both U.S. ZIP Codes.
- Because the generalization level was not set, the most detailed boundary is returned for each ZIP Code.
JSON response rendered with ArcGIS for Desktop.

Notes:
- Transparency and fill properties have been adjusted for illustrative purposes.
Return generalized geometries for two zip codes
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.ZIP5"]&geographyids=["92129","92126"]&returnGeometry=true&generalizationLevel=2&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns the attributes and geometry for both U.S. ZIP Codes.
- Polygons are returned with the 6th most set of generalized polygons.
JSON response rendered with ArcGIS for Desktop.

Notes:
- Transparency and fill properties have been adjusted for illustrative purposes.
Return point centroids for two zip codes
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.ZIP5"]&geographyids=["92129","92126"]&returnGeometry=true&returnCentroids=true&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns the attributes and geometry for both U.S. ZIP Codes.
- ZIP Code centroids are returned as the feature geometry for each postal area.
JSON response rendered with ArcGIS for Desktop.

Notes:
- Properties have been adjusted and labels added for illustrative purposes.
Return census tracts
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyids=["06059"]&returnGeometry=true&returnSubGeographyLayer=true&subGeographyLayer=US.Tracts&generalizationLevel=2&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
- Returns the Census Tracts that are within Orange County, California.
- Polygons are returned with the most generalized features.
JSON response rendered with ArcGIS for Desktop.

Notes:
- Transparency property have been adjusted for illustrative purposes.
Return all the U.S. counties that contain the term “Orange”
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyQuery=orange&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns any county with the term “Orange” in its name.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Return all the U.S. counties and U.S. cities and towns that contain the term “Orange”
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties","US.Places"]&geographyQuery=orange&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
- Returns any county or census town or city with the term “Orange” in its name.
- Each output feature has a DataLayerID that will illustrate if the matching feature is a county or census place (city or town).
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Return the U.S. counties that have the term “San”
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyQuery=San*&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
- Returns any county where the feature name contains the term “San”.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Return all the U.S. counties that contain the term “Orange County” and “CA”
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyQuery=Name:"Orange County" AND MajorSubdivisionAbbr:CA&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns any county where the feature name contains the term “Orange County” and the state abbreviation is equal to “CA”.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Demonstrate the fuzzy matching capabilities with a misspelled place name
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Places"]&geographyQuery=twian hart&useFuzzySearch=true&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns the place of Twain Harte even though the name was spelled incorrectly in the
geography
parameter.Query - You could also set the fuzzy search explicitly within the
geography
parameter using the tilde symbol “~” (for example,Query geography
).Query=rancho kukamonga~ - The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Return a list of places in Orange County, CA
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyids=["06059"]&returnSubGeographyLayer=true&subGeographyLayer=US.Places&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The response has been abbreviated in the example where "..." is noted.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Return all the country names then begin with "Bel"
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?geographylayers=countries&geographyquery=Bel*&f=pjson&token=<ACCESS_TOKEN>
Notes:
- The "countries" geography layer contains all countries and associated features throughout the globe.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
Query all the cities in Canada for "Victoria" and return the center point
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=CA&geographylayers=cities&geographyquery=victoria&returnGeometry=true&returnCentroids=true&f=pjson&token=<ACCESS_TOKEN>
Notes:
- Returns the cities of Victoria in Canada.
- The "Cities" geography layer contains major cities throughout the entire globe.
- Only X, Y center points can be returned for cities.
- The Score attribute indicates how close the search was. A score of 100 indicates an exact string match.
JSON response rendered with ArcGIS for Desktop.
