StrollPlace Developers
StrollPlace

How to Add a “What’s Nearby” Widget to IDX Broker Listing Pages

Add StrollPlace’s What’s Nearby widget to IDX Broker property pages. Preview an Albuquerque example and test the embed on your actual IDX template.

Listing location, embed code and a nearby places map connected in sequence.

A listing tells buyers what’s inside a home. A What’s Nearby section helps them explore the area around it before they schedule a showing. StrollPlace can use the location available on a supported IDX Broker listing to display nearby places and local information. The builder offers two IDX Broker placements: individual property pages and below search results.

Preview the widget with an Albuquerque example

  1. Open the StrollPlace widget builder, choose Listing pages, and select IDX Broker under Your IDX provider.

  2. Under Where to show, keep Individual listing pages enabled. Turn Search results off for the first test so you can verify one placement at a time.

  3. Under Preview What’s Nearby, enter Albuquerque, NM, latitude 35.084, and longitude -106.653. Select Preview listing.

  4. Pick the sections you want to show. Start with Places to explore and Getting around, then switch between the desktop and mobile previews.

Those coordinates are a demo location. The builder keeps preview coordinates out of the install code. On your website, the widget uses the location available on each listing and the content StrollPlace has for that area.

The What’s Nearby preview showing places in Albuquerque.
The builder previews nearby places for the Albuquerque listing location.
IDX Broker selected with individual listing pages enabled.
For the first IDX Broker test, enable Individual listing pages and leave Search results off.

Install the script in the IDX Broker wrapper

Copy the full snippet from Add it to your website. In IDX Broker, open Design → Website → Wrappers and identify the wrapper that serves the property detail page you’ll use for testing. A category or page wrapper can take precedence over the global one. If an agency manages your wrapper, give them the generated snippet and the test listing URL so they can add it to the right template. IDX Broker wrapper documentation

Add the script once to the wrapper output that loads on the IDX pages. For a dynamic wrapper, make the change in the source template that supplies that wrapper and verify that the script reaches the resulting IDX page. The test that matters is the property detail URL a visitor opens, which may use a different hostname than your regular website. IDX Broker dynamic wrapper documentation

Example embed for property detail pages

This configuration uses a compact light layout and enables two content sections. For your install, copy the current snippet from the builder so the script URL and integrity hash come from the same generated embed.

<script
  data-provider="idx-broker"
  data-views="detail"
  src="https://widgets.strollplace.com/assets/bootstrap-cd7a861a43d8d782.js"
  integrity="sha384-df82eQheb+0mlDt3bcbx9OoQk4rHGL1AU03syYXu9dWB9Hdbt9haht/zmgyWGndH"
  crossorigin="anonymous"
  data-widget="listing"
  data-theme="light"
  data-variant="compact"
  data-accent="#b8442a"
  data-background="#ffffff"
  data-text="#16191a"
  data-radius="12"
  data-font="system"
  data-sections="places,getting-around"
></script>

Verify the placement on a real listing

Open a public or staging listing URL in a private window. Confirm the widget appears once, shows the right area, and fits the page at mobile width. Its links should open the relevant place guides. Then try a listing in a different city with StrollPlace coverage to check that the location changes with the property.

When you’re ready to add search pages, turn Search results on in the builder and replace the original embed. Check the results page separately. For example, open a search with listings in two covered areas and see which areas the widget can identify from the results shown. If you leave Open it automatically off, visitors open the neighborhood section themselves.

If the script runs only on the parent page of an embedded IDX iframe, StrollPlace can’t detect the listing from that page. Verify the direct IDX listing URL and the wrapper serving it. For a market page with an iframe, you can also add a fixed Place card for the city beside the search.

Build your IDX Broker embed