...
We strongly prefer JSON (available now) but we can produce XML if you buy us a beer.
The JSON is formatted for readability but your browser may obscure that.
The way to see the nicely formated JSON is to right click on the web page and select "view source".
The Chrome browser has a nice feature here: (You need to copy and paste the text below to the Chrome address bar and hit enter.)view-source:http://10.250.60.189/geocode/streetNetwork/findAddressCandidates?f=json&Address=169 SACRAMENTO ST&Zip=94114If you use chrome or firefox you can type "ctrl-u".
If you use Internet Explore you can type "alt-v-c".
In any case, the JSON should look something like this:
Code Block |
---|
{ "inputAddressString": "100 Main St", "inputZipCodeString": "94105", "spatialReference": { "wkid": 4326 }, "foundMatch": true, "foundEasMatch": false, "candidates": [ { "address": "100 MAIN ST", "location": "POINT (-122.3948959209805700 37.7917552676099080)", "score": null, "attributes": { "StreetName": "MAIN", "StreetType": "ST" }, "addressNumber": "100", "street": { "streetNamePrimary": { "base_street_name": "MAIN", "street_type": "ST" }, "streetNameAliases": [], "l_f_add": 101, "l_t_add": 199, "r_f_add": 100, "r_t_add": 198, "seg_cnn": 8628000, "geometry": "MULTILINESTRING ((-122.3949402377882200 37.7918420903234780, -122.3934079394635700 37.7906126704266400))" }, "zipCode": "94105", "jurisdiction": "SF MAIN" } ], "validations": [], "didYouMean": [] } |
...
Results, Performance, Tests
...
The service processes about 10 500 addresses per second minute which should be fine for our purposes.
We have done no performance optimization so we can probably make it faster if you have a compelling reason.
We have written unit tests which you can see here.
...