Summary of Geocoding Elements |
Geocode Element | Used in: |
---|---|
ADDRESS | GET_GEOCODE request. |
FEATURECOORDSYS | GET_GEOCODE request. |
GCCOUNT | GEOCODE response. |
GCFIELD | Map configuration file. |
GCINPUT | SERVICEINFO response. |
GCSTYLE | Map configuration file and SERVICEINFO response. |
GCTAG | GET_GEOCODE request. |
GEOCODE | GEOCODE response. |
GET_GEOCODE | GET_GEOCODE request. |
GCSTYLE is used to list the address style. GCFIELD is used to describe the different input parameters from the database needed for that style. Below is an example of using GCSTYLE and GCFIELD in an EXTENSION.
Using GCSYTLE and GCFIELD in an EXTENSION: |
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-71.077092" miny="42.357962" maxx="-71.034511" maxy="42.385263" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-64" directory="<path to data>" /> </WORKSPACES> <LAYER type="featureclass" name="Streets" visible="true" id="4"> <DATASET name="bosstreets" type="line" workspace="shp_ws-64" /> <SIMPLERENDERER> <SIMPLELINESYMBOL type="solid" width="2" color="255,0,0" /> </SIMPLERENDERER> <EXTENSION type="Geocode"> <GCSTYLE name="USAddressZ"> <!--reqd--> <GCFIELD id="FromLeft" name="L_F_ADD" /> <!--reqd--> <GCFIELD id="FromRight" name="R_F_ADD" /> <!--reqd--> <GCFIELD id="ToLeft" name="L_T_ADD" /> <!--reqd--> <GCFIELD id="ToRight" name="R_T_ADD" /> <GCFIELD id="PreDir" name="PREFIX" /> <GCFIELD id="PreType" name="PRE_TYPE" /> <!--reqd--> <GCFIELD id="StreetName" name="NAME" /> <GCFIELD id="StreetType" name="TYPE" /> <GCFIELD id="SufDir" name="SUFFIX" /> <!--reqd--> <GCFIELD id="LeftZone" name="ZIPL" /> <!--reqd--> <GCFIELD id="RightZone" name="ZIPR" /> </GCSTYLE> </EXTENSION> </LAYER> </MAP> </CONFIG> </ARCXML> |
A GET_GEOCODE request: |
<?xml version="1.0" encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_GEOCODE maxcandidates="25" minscore="60"> <LAYER id="4" /> <ADDRESS> <GCTAG id="STREET" value="380 New York Street" /> <GCTAG id="Zone" value="92373" /> <GCTAG id="CrossStreet" value="" /> </ADDRESS> </GET_GEOCODE> </REQUEST> </ARCXML> |
A GET_GEOCODE request with FEATURECOORDSYS: |
<?xml version="1.0" encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_GEOCODE maxcandidates="25" minscore="60"> <LAYER id="4" /> <FEATURECOORDSYS id="54030"/> <ADDRESS> <GCTAG id="STREET" value="380 New York Street" /> <GCTAG id="Zone" value="92373" /> <GCTAG id="CrossStreet" value="" /> </ADDRESS> </GET_GEOCODE> </REQUEST> </ARCXML> |
A GEOCODE response: |
<?xml version="1.0" encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <GEOCODE> <FEATURE featureid="1"> <FIELD type="4" name="SCORE" size="5" precision="0"> <FIELDVALUE valuestring="100" /> </FIELD> <FIELD type="12" name="ADDRESSFOUND" size="21" precision="0"> <FIELDVALUE valuestring="380 NEW YORK ST 92373" /> </FIELD> <FIELD type="-98" name="SHAPEFIELD"> <FIELDVALUE> <POINT x="-117.19496116" y="34.05777355" /> </FIELDVALUE> </FIELD> </FEATURE> <GCCOUNT count="1" /> </GEOCODE> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request: |
<?xml version="1.0" encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO extensions="true" renderer="false" fields="false" envelope="false" /> </REQUEST> </ARCXML> |
SERVICEINFO response with ArcIMS service EXTENSION information and GCSYTLE: |
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <CAPABILITIES forbidden="" disabledtypes=""/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-71.0718204242754" miny="42.368904975182" maxx="-71.0475995680561" maxy="42.3869647980717" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="featureclass" visible="true" name="Streets" id="1" maxscale="0.0000470313026173583"> <FCLASS type="line"></FCLASS> <EXTENSION type="Geocode" > <GCSTYLE name="USAddressZ" /> </EXTENSION> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
SERVICEINFO response rerouted to the Geocode Server: |
<?xml version="1.0" encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <CAPABILITIES forbidden="" disabledtypes=""/> </ENVIRONMENT> <LAYERINFO name="streets" id="1" > <EXTENSION type="geocode"> <GCSTYLE name="USAddressZ" > <GCINPUT id="STREET" type="text" label="Street" width="10" description="street number, street name and type" /> <GCINPUT id="ZONE" type="text" label="Zone" width="5" description="zone information" /> <GCINPUT id="CROSSSTREET" type="text" label="Cross street" width="10" description="cross street name and type" /> </GCSTYLE> </EXTENSION> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |