|
The USC Geocoder can be used from desktop and/or web applications
via the Geocoding Web Service interfaces listed below.
The only required information is the API key, which is available in your
account profile page.
You may want to read the
technical details and the
known bugs.
API Version - 2.91
- Previous versions - 2.9
Available Web Services
-
API for non-parsed address data that can be used from scripts and http that allows advanced options to be specified
-
API URL
https://webgis.usc.edu/Services/Geocode/WebService/GeocoderWebServiceHttpNonParsedAdvanced_V02_91.aspx?
API Input Fields
This API's input field set includes all of the input and output parameters from API #2 above with the additions in the following table.
Each of these are described in the techincal details.
The default values used here are automatically used in API #2 above.
| Parameter |
Required |
Description |
Values |
Default value |
| r |
false |
whether or not to use attribute relaxation |
true, false |
true |
| ratts |
false |
the attributes allowed to be relaxed; only applies if shouldUseRelaxation is true |
comma separated list from the following options: pre, suffix, post, city, zip |
pre,suffix,post,city,zip |
| sub |
false |
whether or not to use substring matching |
true, false |
true |
| sou |
false |
whether or not to use soundex |
true, false |
false |
| souatts |
false |
the attributes allowed to be soundex; only applies if shouldUseSoundex is true |
comma separated list from the following options: name, city |
name,city |
| h |
false |
which feature matching hierarchy to use |
uncertaintyBased, u, featureMatchingHierarchy, f, |
featureMatchingHierarchy |
| refs |
false |
which reference data soiurces to use |
all
- or one or more of the following -
parcelCentroids, parcelGeometries, tiger2008, zipPlus4, census2008Places, census2000Places, census2008ConsolidatedCities, census2000ConsolidatedCities, census2000MCDs, census2008ZCTAs, census2000ZCTAs, census2008CountySubRegions, census2000CountySubRegions, census2008Counties, census2000Counties, census2008States
|
all |
API Output Fields and Index (for non-XML output)
The output fields for this API are the same as API #2 above
-
API Examples
Example 1 - 9355 NE Burton Rd, Wrong City, ca, 90210 (XML, Verbose, All options false)
- will fail to match a parcel because city is wrong
Example 2 - 9355 NE Burton Rd, Wrong City, ca, 90210 (XML, Verbose, Attribute Relxation on pre,suffix,city)
- will succeed in matching a parcel even though city is wrong because the city attribute will be relaxed
Example 3 - 9355 Berrton Way, Beverly Hills, ca, 90210 (XML, Verbose, All options false)
- will fail to match a parcel because the street name is wrong
Example 4 - 9355 Berrton Way, Beverly Hills, ca, 90210 (XML, Verbose, Soundex on street name)
- will succeed in matching a parcel even though the street name is wrong because soundex is being used on the street name
Example 5 - 9355 Berton Way, Bevirrly Hills, ca, 90210 (XML, Verbose, All options false)
- will fail to match a parcel because the city name is wrong
Example 6 - 9355 Berton Way, Bevirrly Hills, ca, 90210 (XML, Verbose, Soundex on city)
- will succeed in matching a parcel even though the city is wrong because soundex is being used on the city
Example 7 - PO Box 123, Beverly Hills, ca, 90210 (XML, Verbose, Feature matching hierarchy)
- will match to ZIP 90210 (ZIP comes before city in the feature matching hierarchy)
Example 8 - PO Box 123, Beverly Hills, ca, 90210 (XML, Verbose, Uncertainty hierarchy)
- will match to city Beverly Hills (smaller area = less geographic uncertainty = more accurate geocode)
|