Return records from Precisely's Buildings data to understand what structures are related to an address. By providing an Address or PreciselyID input you can return the primary Building. By including a relationship requirement, you can return all buildings on a property. Precisely's unique and persistent BuildingID returned with any feature can then be used as input for future enrichment.
Buildings
This query will return the primary building related to an address.
query getByAddress {
getByAddress(address: "3252 Fulton St, Denver, CO 80238") {
buildings {
data {
buildingID
buildingType {
value
description
}
ubid
fips
geographyID
latitude
longitude
elevation
maximumElevation
minimumElevation
buildingArea
geometry
}
}
}
}Building by Address for Canada
The query below returns the attributes for the record related to the input Canadian address.
query buildingsByGetByAddress {
getByAddress(address: "54 Shallmar Blvd, Toronto, ON M6C 2J9, Canada", country: "CANADA") {
buildings {
data {
buildingID
fips
geographyID
longitude
latitude
elevation
maximumElevation
minimumElevation
buildingArea
buildingType {
value
description
}
ubid
geometry
}
}
}
}Building by Precisely ID for Canada
The query below returns building information for the record related to the input PreciselyID, in Canada.
query buildingByGetByID {
getById(id: "P0001A64XUU6", queryType: PRECISELY_ID, country: "CANADA") {
buildings {
data {
buildingID
fips
geographyID
longitude
latitude
elevation
maximumElevation
minimumElevation
buildingArea
buildingType {
value
description
}
ubid
geometry
}
}
}
}Buildings related to a Parcel with Address Input
The query below returns all buildings related to the parcel at the specified address.
query buildingsByParcelAddress {
getByAddress(address: "3252 Fulton St Denver") {
parcels {
data {
buildings {
data {
buildingID
buildingType {
value
description
}
ubid
fips
geographyID
latitude
longitude
elevation
maximumElevation
minimumElevation
buildingArea
geometry
}
}
}
}
}
}