/StandardGeographyQuery

GETGETPOST
Use dark colors for code blocksCopy
1
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.

Parameters

NameRequiredTypeDefaultDescription
string

An access token with the required privileges.

string

json

The output response format, either json, HTML, or XML.

string

empty

The source country for the query.

string

empty

The dataset within a specific country.

string

empty

Sets which data source to use within a defined country.

[string]

null | empty

The standard geography layers to query.

[string]

null | empty

The IDs for the standard geography layers to query. Required if geographyLayers is not set.

string

null | empty

The text to query within specified standard geography layers. Required if geographyIDs is not set.

boolean

false

Returns all the subgeographic areas that are within a parent geography.

string

null | empty

Returns all subgeographic areas within a parent geography.

string

null | empty

Filters the results of the subgeography features that are returned by a search.

number

4326

Requests the output geometries in a specified spatial reference system.

boolean

false

Includes the geometries associated with each feature in a response.

boolean

false

Returns the center point for each feature in the response.

integer

0

Sets the level of generalization in the area representations of an administrative boundary or standard geographic data layer.

boolean

false

Utilizes fuzzy search logic if text is provided in the geographyQuery parameter.

integer

1000

Limits the number of features that are returned from the geographyQuery parameter.

integer

0

Starts the results on the specified number of the record.

string

en

The language for the results of a query.

string

null | empty

Returns only requested fields.

boolean

false

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
Use dark colors for code blocksCopy
1
token=<ACCESS_TOKEN>

Learn more about access tokens and privileges in the Security and authentication developer guide.

Optional parameters

f

Default value: json

The response format.

Use dark colors for code blocksCopy
1
f=json

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:

sourceCountry=US

Example 2 – Set the source country to Canada:

sourceCountry=CA

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://geoenrich.arcgis.com/arcgis/rest/services/World/GeoEnrichmentServer/StandardGeographyQuery?geographyIDs=['47']&geographyLayers=JP.Prefectures&optionalCountryDataset=JPN_EsriJapan_ 2023 &f=pjson&returnGeometry=True&sourceCountry=JP

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 optionalCountryHIerarchy 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://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery?sourcecountry=US&optionalcountryhierarchy=esri2023&geographylayers=["US.States"]&geographyids=["06"]&returnGeometry=true&f=json

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:

geographyLayers=["CAN.PR"]

Example 2 – Limit the search and query to all U.S. counties and census places (Cities and Towns):

geographyLayers=["US.Counties", "US.Places"]

Example 3 – Search and query all global city names:

geographyLayers=cities

Example 4 – Search and query all country names:

geographyLayers=countries

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 sourceCountry parameter is blank, at least one layer must be defined in this parameter

geographyIDs

Required if geographyQuery 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 geographyLayers parameter is set to geographyLayers=[“US.States”]:

geographyIDs=["06"]

Example 2 – Return two US ZIP Codes where the geographyLayers parameter is set to geographyLayers=[“US.ZIP5”]:

geographyIDs=["92129","92126"]

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 geographyLayers parameter if you use this parameter to query features by ID.
  • Only matched features will be returned from the layers defined in the geographyLayers parameter.

geographyQuery

Required if geographyIDs 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 geographyQuery 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”]:

geographyQuery=orange

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:"Orange County" AND MajorSubdivisionAbbr:CA

or

Name:"Orange County" AND MajorSubdivisionID:06

or

"Orange County" AND MajorSubdivisionName:California

The following fields are supported in geographySearch :

FieldDescription

ID

Geography ID—for example, 06069 or 59025 .

NAME

Geography NAM—for example, Orange County or Skeena - Bulkley Valley .

MajorSubdivisionName

Major subdivision name—for example, California or British Columbia .

MajorSubdivisionAbbr

Major subdivision abbreviation—for example, CA or BC .

MajorSubdivisionID

Major subdivision ID—for example, 06 or 59

MajorSubdivision

Major subdivision ID, name and abbreviation—for example, 06 , California , CA or 59 , British, Columbia , BC .

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 useFuzzySearch parameter to true. You can also explicitly set a fuzzy search with the geographyQuery 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 useFuzzySearch 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 geographyQuery , 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:

"Orange" AND "County"

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" OR orange

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:

+Orange OR County

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" NOT "county"

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:

(Orange OR Riverside) AND CA

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:(+Orange +County)

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 geographyLayers parameter to define which layers are being searched.
  • You can search more than one layer if the geographyLayers parameter is provided with multiple layers.
  • To achieve optimal performance, it is strongly recommended that at least one layer is defined in the geographyLayers parameter.
  • If sourceCountry is blank, at least one layer must be defined in the geographyLayers parameter.
  • If no geographyLayers are provided, all standard geography layers will be searched within sourceCountry . This will adversely affect performance.
  • If the useFuzzySearch parameter is set to false, a standard text search is performed for all text submitted with the geographyQuery parameter.
  • If the useFuzzySearch parameter is set to true, all words submitted with geographyQuery will be searched with fuzzy logic.
  • 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 subGeographyLayer . The output geometries will be in the spatial reference system defined by outSR .

Default value

false

The output geometries will not be returned with each feature in the response.

Example

Request the output geometries in the response:

returnSubGeographyLayer=true

Additional notes

  • If returnSubGeographyLayer is set to true, you must define a subGeographyLayer

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”]:

subGeographyLayer=US.Counties

Example 2 - Request Canadian FSAs features (postal areas) to be returned within the defined metropolitan areas geographyLayers=[“ CAN.CMACA”]:

subGeographyLayer=CAN.FSA

Additional notes

  • You can only set this parameter if returnSubGeographyLayer is set to true.
  • The list of available standard geography levels and their associated IDs is listed in the coverage section.
  • If returnSubGeographyLayer is set to true, this parameter is no longer optional; you must define a subGeographyLayer .

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”:

subGeographyQuery=921*

Additional notes

  • The syntax and supported operations for subGeographyLayer are the same as geographyLayer .
  • Consult the geographyQuery parameter documentation to get information on supported search operators.
  • The subGeographyLayer can only be defined if returnSubGeographyLayer is set to true and a subGeographyLayer is defined.
  • If the useFuzzySearch parameter is set to false, a standard text search is performed for all text submitted with the subGeographyQuery parameter.
  • If the returnSubGeographyLayer parameter is set to true, all words submitted with subGeographyQuery will be searched with fuzzy logic.
  • Searches within the geography query are not case sensitive.

outSR

Optional parameter to request the output geometries in a specified spatial reference system.

When returnGeometry 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:

outSR=3857

Additional notes

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 outSR.

The output geometries will not be returned with each feature in the response.

Example

Request the output geometries in the response:

returnGeometry=true

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 outSR .

Example

Request the output point geometries in the response:

returnCentroids=true

Additional notes

  • The center of each point will be returned for standard geographic areas.
  • This parameter can only be set to true if the returnGeometry parameter is also set to true.

generalizationLevel

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:

generalizationLevel=0

Example 2 - Request the most generalized output geometry:

generalizationLevel=2

Additional notes

  • A generalizationLevel of 0 will return the most detailed and precise polygon area features.

  • 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 generalizationLevel of 2 will produce a smaller and less detailed polygon.

  • Less detailed features may not look as precise or match the shoreline of basemaps.

useFuzzySearch

Optional parameter to define if text provided in the geographyQuery 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

useFuzzySearch=true

Additional notes

  • If this parameter is set to false, a standard text search is performed for all text submitted with the geographyQuery parameter.
  • If this parameter is set to true, all words submitted with geographyQuery will be searched with fuzzy logic.
  • More discussion about the fuzzy search capabilities are found in the geographyQuery parameter documentation.

featureLimit

Optional integer value where you can limit the number of features that are returned from the geographyQuery parameter.

Example

Request the output geometries in the response:

featureLimit=50

Additional notes

  • The Standard Geography Query service has a maximum of 5000 features.
  • The featureLimit parameter cannot exceed this maximum.
  • The featureLimit used with the featureOffset parameter supports pagination of StandardGeographyQuery results.

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:

langCode=pt

outFields

Optional parameter that returns only the requested fields.

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

Use dark colors for code blocksCopy
1
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

Use dark colors for code blocksCopy
1
{"results":[{"layerID":"US.Tracts","featureCount":9110}],"messages":[]}

Additional notes

  • This parameter can be used together with thereturnSubGeographyLayer and the subGeographyLayer parameters.

Response status

For a list of error codes and details, go to Error codes.

Response details

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  "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

Use dark colors for code blocksCopy
1
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/StandardGeographyLevels/Canada?f=pjson&token=<ACCESS_TOKEN>

Return the province of Ontario in Canada by its Census ID

Use dark colors for code blocksCopy
1
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=CA&geographylayers=["CAN.PR"]&geographyids=["35"]&f=pjson&token=<ACCESS_TOKEN>

Return two U.S. ZIP codes and return the polygon geometry for each feature

Use dark colors for code blocksCopy
1
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>

Return generalized geometries for two zip codes

Use dark colors for code blocksCopy
1
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>

Return point centroids for two zip codes

Use dark colors for code blocksCopy
1
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>

Return census tracts

Use dark colors for code blocksCopy
1
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>

Return all the U.S. counties that contain the term “Orange”

Use dark colors for code blocksCopy
1
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyQuery=orange&f=pjson&token=<ACCESS_TOKEN>

Return all the U.S. counties and U.S. cities and towns that contain the term “Orange”

Use dark colors for code blocksCopy
1
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>

Return the U.S. counties that have the term “San”

Use dark colors for code blocksCopy
1
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?sourceCountry=US&geographylayers=["US.Counties"]&geographyQuery=San*&f=pjson&token=<ACCESS_TOKEN>

Return all the U.S. counties that contain the term “Orange County” and “CA”

Use dark colors for code blocksCopy
1
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>

Demonstrate the fuzzy matching capabilities with a misspelled place name

Use dark colors for code blocksCopy
1
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>

Return a list of places in Orange County, CA

Use dark colors for code blocksCopy
1
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>

Return all the country names then begin with "Bel"

Use dark colors for code blocksCopy
1
GET https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery/execute?geographylayers=countries&geographyquery=Bel*&f=pjson&token=<ACCESS_TOKEN>

Query all the cities in Canada for "Victoria" and return the center point

Use dark colors for code blocksCopy
1
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>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.