AvalaraAvalaraDeveloperDeveloper
  • Productsdown arrow
      Calculations
      AvaTax
      AvaTax Brazil
      AvaTax for Communications
      AvaTax for Excise
      Avalara Tax Content
      E-invoicing
      Activation Service
      Avalara E-Invoicing and Live Reporting
      Brazil
      Brazil Customer Portal
      Tax Compliance (Brazil)
      Tax Central
      Data Staging
      Returns
      Avalara Managed Returns API
      MyLodgeTax
      Avalara Returns Excise
      VAT Reporting
      Shared service
      Shared Services
      1099 & W-9
      Avalara 1099 & W-9
      Tax registrations and business licenses
      Avalara License Guidance
      Sales Tax Registrations
      Payroll tax registrations
      Avalara license filings
      ECM
      Exemption Certificate Management
      Avalara Cross-Border
      Automated Tariff Code Classification
      Self-Serve Tariff Code Classification
      Managed and Premium Tariff Code Classification
      AvaTax Cross-Border (Estimator + Calculator)
      Avalara Trade Compliance
      Avalara Trade and Tariff Library
  • Learndown arrow
      Integrations guides
      Refactor guides
      Get certified
  • Get starteddown arrow
      AvaTax 90 days free trial
      Playground
      Become a partner
      Build with Avalara using AI
  • Developdown arrow
      APIs
      SDKs
      MCPs
      Agent to Agent (A2A)
      AI use cases
      API versioning
  • Resourcesdown arrow
      Avalara NEXT recordings
      Avalara University
      Knowledge Center
  • Support
MENU
Search Icon

No results found for

Profile
  • Sign In
Sign In
Search Icon

No results found for

  • Productsdown arrow
      Calculations
      AvaTax
      AvaTax Brazil
      AvaTax for Communications
      AvaTax for Excise
      Avalara Tax Content
      E-invoicing
      Activation Service
      Avalara E-Invoicing and Live Reporting
      Brazil
      Brazil Customer Portal
      Tax Compliance (Brazil)
      Tax Central
      Data Staging
      Returns
      Avalara Managed Returns API
      MyLodgeTax
      Avalara Returns Excise
      VAT Reporting
      Shared service
      Shared Services
      1099 & W-9
      Avalara 1099 & W-9
      Tax registrations and business licenses
      Avalara License Guidance
      Sales Tax Registrations
      Payroll tax registrations
      Avalara license filings
      ECM
      Exemption Certificate Management
      Avalara Cross-Border
      Automated Tariff Code Classification
      Self-Serve Tariff Code Classification
      Managed and Premium Tariff Code Classification
      AvaTax Cross-Border (Estimator + Calculator)
      Avalara Trade Compliance
      Avalara Trade and Tariff Library
  • Learndown arrow
      Integrations guides
      Refactor guides
      Get certified
  • Get starteddown arrow
      AvaTax 90 days free trial
      Playground
      Become a partner
      Build with Avalara using AI
  • Developdown arrow
      APIs
      SDKs
      MCPs
      Agent to Agent (A2A)
      AI use cases
      API versioning
  • Resourcesdown arrow
      Avalara NEXT recordings
      Avalara University
      Knowledge Center
  • Support
Profile
  • Sign In
Sign In
Sales (877) 282-5585
Chapter 3.3 - Geocode Lat Long
  • Previous
  • Next

The GeocodeLatLong method 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.

<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 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
<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
  • Input Address
  • Latitude/Longitude Geocoding
  • Florida Certification
  • Special Tax Jurisdictions

Results

  • Geocode Lat Long Response
  • Address Location
  • Scoring
  • Previous
  • Next
PreviousNext
Knowledge CenterDeveloper Support
Avalara.com|Terms of Use|Privacy Policy
© 2026 Avalara, Inc.