|
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.6
- Previous versions - 2.0
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.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 |
| h |
false |
which feature matching hierarchy to use |
uncertaintyBased, u, featureMatchingHierarchy, f, |
uncertaintyBased |
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
Example 2 - 9355 NE Burton Rd, Wrong City, ca, 90210 (XML, Verbose, Attribute Relxation on pre,suffix,city)
- will succeed in matching a parcel
Example 3 - 9355 Berrton Way, Beverly Hills, ca, 90210 (XML, Verbose, All options false)
- will fail to match a parcel
Example 4 - 9355 Berrton Way, Beverly Hills, ca, 90210 (XML, Verbose, Soundex)
- will succeed in matching a parcel
Example 5 - 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 6 - 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)
|