Menu · Rules
Rules

Hidden addresses and maps

How the API masks listings whose sellers asked to hide the address, and what your pages, URLs, maps, analytics and CRM payloads must do with them.

View as Markdownopenapi.json

A seller can ask that their address not be shown online, and some boards hide addresses by rule. The API masks those listings everywhere it answers. Your site keeps them masked.

What the API does

When a listing's address is hidden, address.hidden is true and:

  • address.street and address.unit are null, and address.display is the line you may show (on some boards that leaves out the city too);
  • geo is null: there are no coordinates, so the listing never becomes a map pin;
  • the slug is the listing id alone, so the URL is /homes/{id};
  • the head title reads like "3 bd home in Atlanta, GA", and the description, Open Graph tags, JSON-LD and photo alt text carry no street;
  • searches by a map box, a drawn area or a saved shape leave the listing out, because placing it would reveal where it is. Searches by a named place, such as a city or a ZIP code, include it, masked.

What your site does

  • Show address.display and nothing more. Never look the address up anywhere else.
  • Use the API's slug (or listingPath()) for the URL. Never add the address to it.
  • Never put the listing on a map, and never show a "map" or "directions" link for it.
  • Leave the street out of everything you send: GA4 and other analytics events, CRM payloads, emails and social posts. crmProperty() from @ruuster/idx/crm sends no street for these listings, and the recipe components' GA4 events name the home "Home in {city}".
  • Keep the rest of the listing as it is: price, facts, description, photos and attribution.

Maps for boards that hide coordinates

Some boards don't allow map pins for any of their listings. Their listings come back with geo null, like hidden addresses, and /v1/meta data.capabilities.maps tells you whether your boards allow a map at all. Every map that shows listings also shows each board's disclaimer inside the frame.