Thanks
Amit
Here is a sample geocode request:
http://www.where.com/jin/ws/xml/geocode.jin?method=geocode&nr=111&street=Speen%20St&city=Framingham&state=MA&zip=01701&id=12345678&key=<your
key>
method: must be 'geocode'
nr: street number (optional)
street: street name (optional)
city: city name (optional*)
state: state (optional*)
zip: postal code (optional*)
id: unique id of the request (optional; default is 1).
key: developer key
format: 'xml' or 'text' (optional; default is xml). Text returns only
lat/lng ('latitude longitude').
XML response:
<XLS version="1.0.1" xmlns:gml="http://www.opengis.net/gml"
xmlns="http://www.opengis.net/xls">
<ResponseHeader/>
<Response version="1.0" id="12345678">
<GeocodeResponse>
<GeocodedAddress>
<gml:Point>
<gml:pos>42.310919 -71.385746</gml:pos>
</gml:Point>
<Address countryCode="US">
<StreetNr>111</StreetNr>
<Street>Speen St</Street>
<City>Framingham</City>
<State>MA</State>
<Zip>01701</Zip>
<ZipPlus>01701-2000</ZipPlus>
</Address>
</GeocodedAddress>
</GeocodeResponse>
</Response>
</XLS>
Text response
42.310919 -71.385746
Sample Reverse Geocode request:
http://www.where.com/jin/ws/xml/geocode.jin?method=reverse&lat=42.310919&lng=-71.385746&id=12345678&key=<your
key>
method: must be 'reverse'
lat: latitude
lng: longitude
id: unique id of the request (optional; default is 1).
key: developer key
XML Response:
<XLS version="1.0.1" xmlns:gml="http://www.opengis.net/gml"
xmlns="http://www.opengis.net/xls">
<ResponseHeader/>
<Response version="1.0" id="12345678">
<ReverseGeocodeResponse>
<GeocodedAddress>
<gml:Point>
<gml:pos>42.310919 -71.385746</gml:pos>
</gml:Point>
<Address countryCode="US">
<StreetNr>123</StreetNr>
<Street>Speen St</Street>
<City>FRAMINGHAM</City>
<State>MA</State>
<Zip>01701</Zip>
<ZipPlus>01701</ZipPlus>
</Address>
</GeocodedAddress>
</ReverseGeocodeResponse>
</Response>
</XLS>
On Jun 25, 3:06 pm, Allen Smith <gadget...@gmail.com> wrote:
> Yes, we have just opened an API allow developers to do geocoding of
> addresses and reverse-geocoding of latitude and longitude into an
> addresses. To use the service you will need to pass your dev key
> which is available at the top of the "settings" page of your WHERE
> account.
>
> Here is a sample geocode request:http://www.where.com/jin/ws/xml/geocode.jin?method=geocode&nr=111&str...<your
> Sample Reverse Geocode request:http://www.where.com/jin/ws/xml/geocode.jin?method=reverse&lat=42.310...<your
> > Amit- Hide quoted text -
>
> - Show quoted text -
Markus