Skip to main content

Get Location by Coordinates - Pull_GetLocationByCoordinates

This method returns location details based on the geo-coordinates provided on the XML request.

Use Cases​

  • Convert GPS coordinates to DH location IDs
  • Find nearest location for property addresses
  • Validate property locations

Best Practices​

  • Use Smallest Radius: Start with 10km, increase if no results
  • Cache Results: Cache coordinate-to-location mappings
  • Prefer Specific: Choose most specific location (Neighborhood > City > Region)
  • Validate Coordinates: Ensure coordinates are within valid ranges
  • Handle Multiple Results: Pick the closest or most specific match

Request​

XML request​

<Pull_GetLocationByCoordinates_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<Latitude>52.14</Latitude>
<Longitude>21.1</Longitude>
</Pull_GetLocationByCoordinates_RQ>

Request fields​

XML PathData TypeTypeDescription
Pull_GetLocationByCoordinates_RQCRoot element
Pull_GetLocationByCoordinates_RQ/AuthenticationC, MAuthentication details
Pull_GetLocationByCoordinates_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_GetLocationByCoordinates_RQ/Authentication/SecretKeyString(100)MSecret key
Pull_GetLocationByCoordinates_RQ/LatitudeDecimalMLatitude
Pull_GetLocationByCoordinates_RQ/LongitudeDecimalMLongitude

Response​

XML response​

<Pull_GetLocationByCoordinates_RS>
<Status ID="0">Success</Status>
<ResponseID>ffacd672ac424e128b58362d2e4e53c2</ResponseID>
<Location LocationID="25591" Distance="11.6227131">Warszawa</Location>
</Pull_GetLocationByCoordinates_RS>

Response fields​

XML PathData TypeTypeDescription
Pull_GetLocationByCoordinates_RSCRoot element
Pull_GetLocationByCoordinates_RS/StatusString(100)MSee ListStatuses
Pull_GetLocationByCoordinates_RS/Status@IDIntegerMSee ListStatuses
Pull_GetLocationByCoordinates_RS/Locations/LocationMCollection of locations
Pull_GetLocationByCoordinates_RS/LocationIDIntegerMLocation ID, see ListLocations
Pull_GetLocationByCoordinates_RS/Locations/DistanceDecimalMDistance between the coordinates and that location center
Pull_GetLocationByCoordinates_RS/Locations/Location@TimeZoneString(50)OIANA timezone code of location