GeometryInfo
Click here for a complete list of operations.
XYQuery
| Get city, city fips, state, state fips, zipcode, county, county fips, county subdivision, school district, census tract, census block group, area code, traffic zone, voting district, core based statistical area, combined statistical area and metropolitan division based on input x, y coordinates. It returns the result as a object instance of XYInfo. This function is only available for USA coordinates. |
| Sign up to get the key now at www.DynGeometry.com |
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WebServiceV2/GeometryInfo.asmx HTTP/1.1
Host: www.dyngeometry.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.DynGeometry.com/WebService/XYQuery"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<XYQuery xmlns="http://www.DynGeometry.com/WebService/">
<key>string</key>
<longitude>double</longitude>
<latitude>double</latitude>
</XYQuery>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<XYQueryResponse xmlns="http://www.DynGeometry.com/WebService/">
<XYQueryResult>
<longitude>double</longitude>
<latitude>double</latitude>
<censusCity>
<cityFIPS>string</cityFIPS>
<cityName>string</cityName>
<state>string</state>
</censusCity>
<state>
<stateFIPS>string</stateFIPS>
<stateName>string</stateName>
<stateAbbr>string</stateAbbr>
</state>
<zipCode>
<zipCode>string</zipCode>
<zipCity>string</zipCity>
<state>string</state>
</zipCode>
<county>
<countyFIPS>string</countyFIPS>
<countyName>string</countyName>
<state>string</state>
</county>
<countySubdivision>
<countySubdivisionName>string</countySubdivisionName>
<countySubdivisionFIPS>string</countySubdivisionFIPS>
</countySubdivision>
<censusTractFIPS>string</censusTractFIPS>
<blockGroupFIPS>string</blockGroupFIPS>
<coreBasedStatisticalArea>
<CBSAName>string</CBSAName>
<CBSAID>string</CBSAID>
</coreBasedStatisticalArea>
<combinedStatisticalArea>
<CSAName>string</CSAName>
<CSAID>string</CSAID>
</combinedStatisticalArea>
<metropolitanDivision>
<METDIVName>string</METDIVName>
<METDIVID>string</METDIVID>
</metropolitanDivision>
<schoolDistrict>
<schoolDistrictUnifiedName>string</schoolDistrictUnifiedName>
<schoolDistrictUnifiedID>string</schoolDistrictUnifiedID>
<schoolDistrictSecondaryName>string</schoolDistrictSecondaryName>
<schoolDistrictSecondaryID>string</schoolDistrictSecondaryID>
<schoolDistrictElementaryName>string</schoolDistrictElementaryName>
<schoolDistrictElementaryID>string</schoolDistrictElementaryID>
</schoolDistrict>
<trafficZone>
<trafficZoneName>string</trafficZoneName>
<trafficZoneID>string</trafficZoneID>
</trafficZone>
<votingDistrict>
<votingDistrictName>string</votingDistrictName>
<votingDistrictID>string</votingDistrictID>
</votingDistrict>
<areaCode>
<areaCode>
<string>string</string>
<string>string</string>
</areaCode>
<state>string</state>
</areaCode>
<error_no>int</error_no>
<error_desc>string</error_desc>
</XYQueryResult>
</XYQueryResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WebServiceV2/GeometryInfo.asmx HTTP/1.1
Host: www.dyngeometry.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<XYQuery xmlns="http://www.DynGeometry.com/WebService/">
<key>string</key>
<longitude>double</longitude>
<latitude>double</latitude>
</XYQuery>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<XYQueryResponse xmlns="http://www.DynGeometry.com/WebService/">
<XYQueryResult>
<longitude>double</longitude>
<latitude>double</latitude>
<censusCity>
<cityFIPS>string</cityFIPS>
<cityName>string</cityName>
<state>string</state>
</censusCity>
<state>
<stateFIPS>string</stateFIPS>
<stateName>string</stateName>
<stateAbbr>string</stateAbbr>
</state>
<zipCode>
<zipCode>string</zipCode>
<zipCity>string</zipCity>
<state>string</state>
</zipCode>
<county>
<countyFIPS>string</countyFIPS>
<countyName>string</countyName>
<state>string</state>
</county>
<countySubdivision>
<countySubdivisionName>string</countySubdivisionName>
<countySubdivisionFIPS>string</countySubdivisionFIPS>
</countySubdivision>
<censusTractFIPS>string</censusTractFIPS>
<blockGroupFIPS>string</blockGroupFIPS>
<coreBasedStatisticalArea>
<CBSAName>string</CBSAName>
<CBSAID>string</CBSAID>
</coreBasedStatisticalArea>
<combinedStatisticalArea>
<CSAName>string</CSAName>
<CSAID>string</CSAID>
</combinedStatisticalArea>
<metropolitanDivision>
<METDIVName>string</METDIVName>
<METDIVID>string</METDIVID>
</metropolitanDivision>
<schoolDistrict>
<schoolDistrictUnifiedName>string</schoolDistrictUnifiedName>
<schoolDistrictUnifiedID>string</schoolDistrictUnifiedID>
<schoolDistrictSecondaryName>string</schoolDistrictSecondaryName>
<schoolDistrictSecondaryID>string</schoolDistrictSecondaryID>
<schoolDistrictElementaryName>string</schoolDistrictElementaryName>
<schoolDistrictElementaryID>string</schoolDistrictElementaryID>
</schoolDistrict>
<trafficZone>
<trafficZoneName>string</trafficZoneName>
<trafficZoneID>string</trafficZoneID>
</trafficZone>
<votingDistrict>
<votingDistrictName>string</votingDistrictName>
<votingDistrictID>string</votingDistrictID>
</votingDistrict>
<areaCode>
<areaCode>
<string>string</string>
<string>string</string>
</areaCode>
<state>string</state>
</areaCode>
<error_no>int</error_no>
<error_desc>string</error_desc>
</XYQueryResult>
</XYQueryResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /WebServiceV2/GeometryInfo.asmx/XYQuery?key=string&longitude=string&latitude=string HTTP/1.1 Host: www.dyngeometry.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<XYInfo xmlns="http://www.DynGeometry.com/WebService/">
<longitude>double</longitude>
<latitude>double</latitude>
<censusCity>
<cityFIPS>string</cityFIPS>
<cityName>string</cityName>
<state>string</state>
</censusCity>
<state>
<stateFIPS>string</stateFIPS>
<stateName>string</stateName>
<stateAbbr>string</stateAbbr>
</state>
<zipCode>
<zipCode>string</zipCode>
<zipCity>string</zipCity>
<state>string</state>
</zipCode>
<county>
<countyFIPS>string</countyFIPS>
<countyName>string</countyName>
<state>string</state>
</county>
<countySubdivision>
<countySubdivisionName>string</countySubdivisionName>
<countySubdivisionFIPS>string</countySubdivisionFIPS>
</countySubdivision>
<censusTractFIPS>string</censusTractFIPS>
<blockGroupFIPS>string</blockGroupFIPS>
<coreBasedStatisticalArea>
<CBSAName>string</CBSAName>
<CBSAID>string</CBSAID>
</coreBasedStatisticalArea>
<combinedStatisticalArea>
<CSAName>string</CSAName>
<CSAID>string</CSAID>
</combinedStatisticalArea>
<metropolitanDivision>
<METDIVName>string</METDIVName>
<METDIVID>string</METDIVID>
</metropolitanDivision>
<schoolDistrict>
<schoolDistrictUnifiedName>string</schoolDistrictUnifiedName>
<schoolDistrictUnifiedID>string</schoolDistrictUnifiedID>
<schoolDistrictSecondaryName>string</schoolDistrictSecondaryName>
<schoolDistrictSecondaryID>string</schoolDistrictSecondaryID>
<schoolDistrictElementaryName>string</schoolDistrictElementaryName>
<schoolDistrictElementaryID>string</schoolDistrictElementaryID>
</schoolDistrict>
<trafficZone>
<trafficZoneName>string</trafficZoneName>
<trafficZoneID>string</trafficZoneID>
</trafficZone>
<votingDistrict>
<votingDistrictName>string</votingDistrictName>
<votingDistrictID>string</votingDistrictID>
</votingDistrict>
<areaCode>
<areaCode>
<string>string</string>
<string>string</string>
</areaCode>
<state>string</state>
</areaCode>
<error_no>int</error_no>
<error_desc>string</error_desc>
</XYInfo>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /WebServiceV2/GeometryInfo.asmx/XYQuery HTTP/1.1 Host: www.dyngeometry.com Content-Type: application/x-www-form-urlencoded Content-Length: length key=string&longitude=string&latitude=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<XYInfo xmlns="http://www.DynGeometry.com/WebService/">
<longitude>double</longitude>
<latitude>double</latitude>
<censusCity>
<cityFIPS>string</cityFIPS>
<cityName>string</cityName>
<state>string</state>
</censusCity>
<state>
<stateFIPS>string</stateFIPS>
<stateName>string</stateName>
<stateAbbr>string</stateAbbr>
</state>
<zipCode>
<zipCode>string</zipCode>
<zipCity>string</zipCity>
<state>string</state>
</zipCode>
<county>
<countyFIPS>string</countyFIPS>
<countyName>string</countyName>
<state>string</state>
</county>
<countySubdivision>
<countySubdivisionName>string</countySubdivisionName>
<countySubdivisionFIPS>string</countySubdivisionFIPS>
</countySubdivision>
<censusTractFIPS>string</censusTractFIPS>
<blockGroupFIPS>string</blockGroupFIPS>
<coreBasedStatisticalArea>
<CBSAName>string</CBSAName>
<CBSAID>string</CBSAID>
</coreBasedStatisticalArea>
<combinedStatisticalArea>
<CSAName>string</CSAName>
<CSAID>string</CSAID>
</combinedStatisticalArea>
<metropolitanDivision>
<METDIVName>string</METDIVName>
<METDIVID>string</METDIVID>
</metropolitanDivision>
<schoolDistrict>
<schoolDistrictUnifiedName>string</schoolDistrictUnifiedName>
<schoolDistrictUnifiedID>string</schoolDistrictUnifiedID>
<schoolDistrictSecondaryName>string</schoolDistrictSecondaryName>
<schoolDistrictSecondaryID>string</schoolDistrictSecondaryID>
<schoolDistrictElementaryName>string</schoolDistrictElementaryName>
<schoolDistrictElementaryID>string</schoolDistrictElementaryID>
</schoolDistrict>
<trafficZone>
<trafficZoneName>string</trafficZoneName>
<trafficZoneID>string</trafficZoneID>
</trafficZone>
<votingDistrict>
<votingDistrictName>string</votingDistrictName>
<votingDistrictID>string</votingDistrictID>
</votingDistrict>
<areaCode>
<areaCode>
<string>string</string>
<string>string</string>
</areaCode>
<state>string</state>
</areaCode>
<error_no>int</error_no>
<error_desc>string</error_desc>
</XYInfo>