Place Finder Sample Web Service methods

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

getCountryCodes
:KeyValue[]

getTypes
: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/PlaceFinderSample
Input Parameters
placeName string
placeFinderOptions PlaceFinderOptions
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.
Output Parameter
Result LocationInfo
Example (Java)

IPlaceFinderSample myPlaceFinderSample = PlaceFinderSampleHelper.bind();
LocationInfo myLocationInfo = myPlaceFinderSample.findPlace("Redlands,CA",myPlaceFinderOptions);

For myPlaceFinderOptions, see PlaceFinderOptions.

Example (VB.NET)

Dim myPlaceFinderSample As New PlaceFinderSample()
Dim mylocInfo As New LocationInfo()
myLocationInfo = myPlaceFinderSample.findPlace("Redlands,CA",myPlaceFinderOptions)

For myPlaceFinderOptions, see PlaceFinderOptions.

Example (C#.NET)

PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample();
LocationInfo myLocationInfo = myPlaceFinderSample.findPlace("Redlands,CA",myPlaceFinderOptions);

For myPlaceFinderOptions, see PlaceFinderOptions.

 

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/PlaceFinderSample
Output Parameter
Result KeyValue[]
Example (Java)

IPlaceFinderSample myPlaceFinderSample = PlaceFinderSampleHelper.bind();
KeyValue myKeyvalue[]= myPlaceFinderSample.getCountryCodes();

Example (VB.NET)

Dim myPlaceFinderSample As New PlaceFinderSample()
Dim myKeyValues() As KeyValue
myKeyValues = myPlaceFinderSample.getCountryCodes("ESRI.Gazetteer.World")

Example (C#.NET)

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

 

Method Name getTypes
Description Returns a list of types that are supported by Place Finder Sample Web Service.
Endpoint URL http://arcweb.esri.com/services/v2/PlaceFinderSample
Output Parameter
Result KeyValue[]
Example (Java)

IPlaceFinderSample myPlaceFinderSample = PlaceFinderSampleHelper.bind();
KeyValue myKeyValue[]= myPlaceFinderSample.getTypes();

Example (VB.NET)

Dim myPlaceFinderSample As New PlaceFinderSample()
Dim myKeyValues() As KeyValue
myKeyValues = myPlaceFinderSample.getTypes("ESRI.Gazetteer.World")

Example (C#.NET)

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

 

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

IPlaceFinderSample myPlaceFinderSample = PlaceFinderSampleHelper.bind();
string version = myPlaceFinderSample.getVersion();

Example (VB.NET)

Dim myPlaceFinderSample As New PlaceFinderSample()
Dim version as String
version = myPlaceFinderSample.getVersion();

Example (C#.NET)

PlaceFinderSample myPlaceFinderSample = new PlaceFinderSample();
string version = myPlaceFinderSample.getVersion();

 


See also

Place Finder Sample overview

Place Type ID codes


SOAP samples


Object model