Within the Addressing API, the Lookup Service returns geocoded candidates when given a unique key.
Preferences
For more detail about preferences and keys, see Addressing API Objects: LookupRequest.
Note: Currently, there are no custom preferences for the Lookup Service.
"preferences": {
"maxResults": 1,
"returnAllInfo": true,
"factoryDescription": {
"label": "",
"featureSpecific": {}
You can try this in the Geo Addressing SDK Sample application
(http://{server}:{port}/{context}/):
- Click .
- Enter a PreciselyID Key such as P0000GL638OL , ensure Type is set to PreciselyID Lookup, and enter USA as the country.
- Click Submit and view the response.
To create a lookup in your application, follow this snippet.
{ "type": "PB_KEY", "preferences": { "maxResults": 2, "returnAllInfo": true, "factoryDescription": { "label": "", "featureSpecific": {} }, "clientLocale": "", "clientCoordSysName": "", "distance": { "value": 150, "distanceUnit": "METER" }, "streetOffset": { "value": 7, "distanceUnit": "METER" }, "cornerOffset": { "value": 7, "distanceUnit": "METER" }, "customPreferences": {} }, "keys": [ { "keyValues": [ { "key": "PBKEY", "value": "P0000GL638OL" }, { "key": "country", "value": "USA" } ] } ] }