Place Finder Web Service methods

findPlace(placeName:string, placeFinderOptions:PlaceFinderOptions, token:string):LocationInfo

getCountryCodes
(dataSource:string, token:string):KeyValue[]

getTypes
(dataSource:string, token:string):KeyValue[]

getVersion
:string

Method Name findPlace
Description Returns the location of all places that begin with the input string and are within the given envelope.
Endpoint URL http://arcweb.esri.com/services/v2/PlaceFinder
Input Parameters
placeName string
placeFinderOptions

PlaceFinderOptions

token string
Valid arguments
placeName A string with one or more letters. If the string is one or two letters, an exact search for the place name is made. If the string is three or more letters, a search for place names beginning with those letters is made.
placeFinderOptions See parameter descriptions in PlaceFinderOptions.
token Authentication token
Output Parameter
Result LocationInfo
Example (Java)

IPlaceFinder myPlaceFinder = PlaceFinderHelper.bind();
LocationInfo myLocationInfo = myPlaceFinder.findPlace("Redlands,CA",myPlaceFinderOptions,token);

For myPlaceFinderOptions, see PlaceFinderOptions.

For token, see getToken.

Example (VB.NET)

Dim myPlaceFinder As New PlaceFinder()
Dim myLocationInfo As New LocationInfo()
myLocationInfo = myPlaceFinder.findPlace("Redlands,CA",myPlaceFinderOptions,token)

For myPlaceFinderOptions, see PlaceFinderOptions.

For token, see getToken.

Example (C#.NET)

PlaceFinder myPlaceFinder = new PlaceFinder();
LocationInfo myLocationInfo = myPlaceFinder.findPlace("Redlands,CA",myPlaceFinderOptions,token);

For myPlaceFinderOptions, see PlaceFinderOptions.

For token, see getToken.

 

Method Name getCountryCodes
Description Returns a list of FIPS 10-4 codes and names for available countries, dependencies, and areas of special sovereignty.
Endpoint URL http://arcweb.esri.com/services/v2/PlaceFinder
Input Parameters
dataSource string
token string
Valid arguments
dataSource See Data sources and credits.
token Authentication token
Output Parameter
Result KeyValue[]
Example (Java)

IPlaceFinder myPlaceFinder = PlaceFinderHelper.bind();
KeyValue myKeyvalue[] = myPlaceFinder.getCountryCodes("ESRI.Gazetteer.World",token);

Example (VB.NET)

Dim myPlaceFinder As New PlaceFinder()
Dim myKeyValues() As KeyValue
myKeyValues = myPlaceFinder.getCountryCodes("ESRI.Gazetteer.World", token)

Example (C#.NET)

myPlaceFinder = new PlaceFinder();
KeyValue[] myKeyValues = myPlaceFinder.getCountryCodes("ESRI.Gazetteer.World", token);

 

Method Name getTypes
Description Returns a list of types that are supported by Place Finder Web Service.
Endpoint URL http://arcweb.esri.com/services/v2/PlaceFinder
Input Parameters
dataSource string
token string
Valid arguments
dataSource See Data sources and credits.
token Authentication token
Output Parameter
Result KeyValue[]
Example (Java)

IPlaceFinder myPlaceFinder = PlaceFinderHelper.bind();
KeyValue myKeyvalue[] = myPlaceFinder.getTypes("ESRI.Gazetteer.World",token);

Example (VB.NET)

Dim myPlaceFinder As New PlaceFinder()
Dim myKeyValues() As KeyValue
myKeyValues = myPlaceFinder.getTypes("ESRI.Gazetteer.World", token)

Example (C#.NET)

myPlaceFinder = new PlaceFinder();
KeyValue[] myKeyValues = myPlaceFinder.getTypes("ESRI.Gazetteer.World", token);

 

Method Name getVersion
Description Returns the version number of Place Finder Web Service.
Endpoint URL http://arcweb.esri.com/services/v2/PlaceFinder
Output Parameter
Result string
Example (Java)

IPlaceFinder myPlaceFinder = PlaceFinderHelper.bind();
string version = myPlaceFinder.getVersion();

Example (VB.NET)

Dim myPlaceFinder As New PlaceFinder()
Dim version as String
version = myPlaceFinder.getVersion();

Example (C#.NET)

PlaceFinder myPlaceFinder = new PlaceFinder();
string version = myPlaceFinder.getVersion();

 

See also

Place Finder overview

Place Type ID codes


Place Finder data sources and credits


SOAP samples


Object model