Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- API URL: api.foo.bar/geocode?location=90210&format=xml -->
- <!-- Standard Response (Before Filter) -->
- <ResultSet>
- <Command>geocode</Command>
- <Params>{location=90210, format=xml, filter={state:true,statecode:true}}</Params>
- <Status>OK</Status>
- <StatusMessage>Request returned as expected.</StatusMessage>
- <Secure>0</Secure>
- <Key>e7a26e99389d0703988a539e7d43c73aea933862</Key>
- <Size>1</Size>
- <Result>
- <record id="record_0">
- <countrycode>US</countrycode>
- <line4>United States</line4>
- <street/>
- <state>California</state>
- <offsetlat>34.092807</offsetlat>
- <house/>
- <city>Beverly Hills</city>
- <xstreet/>
- <name/>
- <countycode/>
- <longitude>-118.411115</longitude>
- <woetype>11</woetype>
- <unittype/>
- <offsetlon>-118.411115</offsetlon>
- <statecode>CA</statecode>
- <hash/>
- <postal>90210</postal>
- <woeid>12795711</woeid>
- <neighborhood/>
- <uzip>90210</uzip>
- <country>United States</country>
- <unit/>
- <county>Los Angeles County</county>
- <quality>60</quality>
- <radius>5000</radius>
- <latitude>34.092807</latitude>
- <line1/>
- <line3/>
- <line2>Beverly Hills, CA 90210</line2>
- </record>
- </Result>
- </ResultSet>
- <!-- FILTERED API REQUEST -->
- <!-- api.foo.bar/geocode?location=90210&filter={state:true,statecode:true}&format=xml -->
- <!-- FILTERED RESPONSE -->
- <ResultSet>
- <Command>geocode</Command>
- <Params>{location=90210, format=xml, filter={state:true,statecode:true}}</Params>
- <Status>OK</Status>
- <StatusMessage>Request returned as expected.</StatusMessage>
- <Secure>0</Secure>
- <Key>e7a26e99389d0703988a539e7d43c73aea933862</Key>
- <Size>1</Size>
- <Result>
- <record id="record_0">
- <state>California</state>
- <statecode>CA</statecode>
- </record>
- </Result>
- </ResultSet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement