GeocodeServerProxy
geocodeservice = new GeocodeServerProxy();
geocodeservice.Url
=
"http://tasks.arcgisonline.com/ArcGIS/services/Locators/TA_Address_NA_10/GeocodeServer";
// Address input field mapping
PropertySetProperty[]
propArray = {
new
PropertySetProperty(){
Key = "Address",
Value = "Address"
}
};
PropertySet
geocodePropSet = new PropertySet()
{
PropertyArray
= propArray
};
// Address input fields
Field[]
fieldarray =
{
new
Field()
{
Name = "OID",
Type = esriFieldType.esriFieldTypeOID,
Length = 10
},
new
Field()
{
Name = "Address",
Type = esriFieldType.esriFieldTypeString,
Length = 100
}
};
// Address inputs
int
i = 0;
Record[]
addressInputs = {
new
Record(){
Values = new object[]
{i++, "6525 N 15th Avenue Phoenix AZ"}
},new Record(){
Values = new object[]
{i++, "14756 N 27th ave
Seattle"}
},new Record(){
Values = new object[]
{i++, "455 Orange Show Ln, San Bernardino,
CA"}
},new Record(){
Values = new object[]
{i++, "1514 Redwing Dr, Evansville"}
}
};
RecordSet
addressTable = new RecordSet()
{
Fields = new Fields()
{ FieldArray = fieldarray
},
Records = addressInputs
};
RecordSet
results = geocodeservice.GeocodeAddresses(addressTable, geocodePropSet, null);
North American Address Locator
United States Street Locator
5 comments:
Nice thanks for the info. It really wasn't clear when looking at the REST endpoint for the geocoding service how to send in a batch request.
Thanks.
Dear Rex, I just go through your blog http://rexdotnet.blogspot.com/2010/09/use-google-maps-with-arcgis-silverlight.html .I cannot post comment there. Thats what i came here to post a comment. The sample application u r providing with http://rexdotnet.blogspot.com/2010/09/use-google-maps-with-arcgis-silverlight.html cannot open in VS2010 .Can u help me to open that in VS2010?
need vb.net code also
Dear Rex , Can u send me (customlayer) the same project in VB.NET?
I love all the posts, I really enjoyed, I would like more information about this, because it is very nice., Thanks for sharing.
Signature:
download descargar facebook para android gratis para Android celular and download free facebook descargar and descargar facebook gratis , descarga facebook
Post a Comment