# Chapter 3.3 - Geocode Lat Long

Source: https://developer.avalara.com/products/communications/integration-guides/dev-guide_geo_soap/customizing-geocoding-requests/sample-requests/geocode-lat-long/

-   [Previous](/communications/dev-guide_geo_soap/customizing-geocoding-requests/sample-requests/geocode-all-matches)
-   [Next](/communications/dev-guide_geo_soap/customizing-geocoding-requests/sample-requests/special-tax-jurisdiction)

The `GeocodeLatLong` [method](/communications/dev-guide_geo_soap/getting-started/endpoints-methods#methods) accepts a latitude and longitude coordinate pair and returns the single best match.

### GeocodeLatLong Example

This request contains the latitude (`latitude`) and longitude (`longitude`) coordinates for the location. Leave source (`Source`) blank.

```xml
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <s:Header> <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <o:UsernameToken> <o:Username>USERNAME</o:Username> <o:Password>PASSWORD</o:Password> </o:UsernameToken> </o:Security> </s:Header> <s:Body> <tem:GeocodeLatLong> <tem:latitude>35.991130741436415</tem:latitude> <tem:longitude>-78.90267307450108</tem:longitude> <tem:Source/> </tem:GeocodeLatLong> </s:Body></s:Envelope>
```

#### Response

The `GeocodeLatLongResponse` contains basic address information for a single matching address based on the coordinate pair. The record returned contains:

-   `CassAddress` is `nil` since [CASS validation](/communications/dev-guide_geo_soap/geocode/cass/) is not performed on a lat/long geocode request
-   Census block ID (`CensusBlockGroup`) and tract ID (`CensusTract`) fields are included but set to 0
-   `PCode`, `FeatureID`, and `FipsCode`
-   Results are from NavTeq (`NetworkID` is `nt`)
-   AFC Geo SaaS Pro Soap is 99.9% confident in this result (`Score` is 0.9999)

[View the Response XML](#collapse1)

```xml
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <u:Timestamp u:Id="_0"> <u:Created>2019-02-07T17:03:31.176Z</u:Created> <u:Expires>2019-02-07T17:08:31.176Z</u:Expires> </u:Timestamp> </o:Security> </s:Header> <s:Body> <GeocodeLatLongResponse xmlns="http://tempuri.org/"> <GeocodeLatLongResult xmlns:a="http://schemas.datacontract.org/2004/07/EZGeoSaaS" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:Alternate>0</a:Alternate> <a:CassAddress i:nil="true"/> <a:CensusBlockGroup>0</a:CensusBlockGroup> <a:CensusTract>0</a:CensusTract> <a:CityName>DURHAM</a:CityName> <a:Country>USA</a:Country> <a:County>DURHAM</a:County> <a:ErrorMessage/> <a:FeatureID>2403521</a:FeatureID> <a:FipsCode>3706319000</a:FipsCode> <a:FipsPlaceName>DURHAM</a:FipsPlaceName> <a:Incorporated>true</a:Incorporated> <a:InputAddress xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <b:string/> <b:string/> </a:InputAddress> <a:Latitude>35.991130741436415</a:Latitude> <a:Longitude>-78.902673074501081</a:Longitude> <a:NetworkID>nt</a:NetworkID> <a:PCode>2757800</a:PCode> <a:PostalCode/> <a:PostalCodeExtension/> <a:PrimaryJurisdictionName>DURHAM</a:PrimaryJurisdictionName> <a:PrimaryJurisdictionPCode>2757800</a:PrimaryJurisdictionPCode> <a:Score>0.99996893240562246</a:Score> <a:SecondaryUnit/> <a:SpecialTaxDistrictName i:nil="true"/> <a:SpecialTaxDistrictPCode>-1</a:SpecialTaxDistrictPCode> <a:StandardizedAddress xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <b:string></b:string> <b:string>DURHAM,NC null</b:string> </a:StandardizedAddress> <a:StateName>NC</a:StateName> <a:StreetName/> <a:StreetNumber/> <a:TaxJurisdictionName>DURHAM</a:TaxJurisdictionName> <a:TimeZone/> <a:UnderlyingFipsCode>3706319000</a:UnderlyingFipsCode> </GeocodeLatLongResult> </GeocodeLatLongResponse> </s:Body></s:Envelope>
```

### See Also

#### Input

-   [Geocode Lat Long](/communications/dev-guide_geo_soap/reference/geocode-lat-long/)
-   [Input Address](/communications/dev-guide_geo_soap/reference/input-address/)
-   [Latitude/Longitude Geocoding](/communications/dev-guide_geo_soap/geocode/lat-long-geocoding/)
-   [Florida Certification](/communications/dev-guide_geo_soap/geocode/florida-certification/)
-   [Special Tax Jurisdictions](/communications/dev-guide_geo_soap/geocode/special-tax-jurisdictions/)

#### Results

-   [Geocode Lat Long Response](/communications/dev-guide_geo_soap/reference/geocode-lat-long-response/)
-   [Address Location](/communications/dev-guide_geo_soap/reference/address-location/)
-   [Scoring](/communications/dev-guide_geo_soap/geocode/scoring/)

-   [Previous](/communications/dev-guide_geo_soap/customizing-geocoding-requests/sample-requests/geocode-all-matches)
-   [Next](/communications/dev-guide_geo_soap/customizing-geocoding-requests/sample-requests/special-tax-jurisdiction)