Skip to main content

Get Location Details - Pull_GetLocationDetails

This method returns the location details in a parent-child way. LocationID of any LocationTypeID can be requested.

Sales Channels pulling properties from DH can use this method to pull a single location details in case of not recognized property location.

Use Cases​

  • Get full location information for property addresses
  • Display location details on property pages
  • Build location hierarchy (Country → Region → City)
  • Show location coordinates on maps
  • Determine timezone for booking logic

Best Practices​

  • Cache Location Data: Locations rarely change - cache indefinitely
  • Build Hierarchy: Store parent relationships for breadcrumb navigation
  • Use Coordinates: Display properties on maps using lat/long
  • Timezone Aware: Use timezone for date/time conversions
  • SEO Optimization: Use location hierarchy for URL structure

Request​

XML request​

<Pull_GetLocationDetails_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<LocationID>500</LocationID>
</Pull_GetLocationDetails_RQ>

Request fields​

XML PathData TypeTypeDescription
Pull_GetLocationDetails_RQCRoot element
Pull_GetLocationDetails_RQ/AuthenticationC, MAuthentication details
Pull_GetLocationDetails_RQ/Authentication/AccessKeyString(100)MAccess key
Pull_GetLocationDetails_RQ/Authentication/SecretKeyString(100)MSecret key
Pull_GetLocationDetails_RQ/LocationIDIntegerMLocation ID, see ListLocations

Response​

XML response​

<Pull_GetLocationDetails_RS>
<Status ID="0">Success</Status>
<ResponseID>0123456789ABCDEF0123456789ABCDEF</ResponseID>
<Locations>
<Location LocationID="1" LocationTypeID="6" ParentLocationID="-1">Worldwide</Location>
<Location LocationID="2" LocationTypeID="1" ParentLocationID="1">Europe</Location>
<Location LocationID="10" LocationTypeID="2" ParentLocationID="2" >Belgium</Location>
<Location LocationID="10054" LocationTypeID="3" ParentLocationID="10" >Wallonia</Location>
<Location LocationID="500" LocationTypeID="4" ParentLocationID="10054" >Duffet</Location>
</Locations>
</Pull_GetLocationDetails_RS>

Response fields​

XML PathData TypeTypeDescription
Pull_GetLocationDetails_RSCRoot element
Pull_GetLocationDetails_RS/StatusString(100)MSee ListStatuses
Pull_GetLocationDetails_RS/Status@IDIntegerMSee ListStatuses
Pull_GetLocationDetails_RS/ResponseIDString(32)MUnique response ID
Pull_GetLocationDetails_RS/LocationsCA collection of locations
Pull_GetLocationDetails_RS/Locations/LocationString(50)MA description of a location
Pull_GetLocationDetails_RS/Locations/Location@LocationIDIntegerMLocation ID, see ListLocations
Pull_GetLocationDetails_RS/Locations/Location@LocationTypeIDIntegerMLocation type ID, see ListLocationTypes
Pull_GetLocationDetails_RS/Locations/Location@ParentLocationIDIntegerMParent location ID, see ListLocations
Pull_GetLocationDetails_RS/Locations/Location@TimeZoneString(50)OIANA timezone code of location