Proximitii Book a Demo

Ask Proximitii Widget Documentation

Let visitors ask location-specific questions about nearby places and daily life. Read the installation details, parameters and examples.

The Ask Proximitii Widget lets visitors explore a location through suggested questions or ask their own. It provides location-specific answers about nearby places, schools, demographics and everyday life, with an optional Download Report button.

Ask Proximitii Widget with suggested neighborhood questions, a question field and a Download Report button

Installation

Add the container and widget script to your page. Replace the widget key and coordinates with your own values.

<div id="prox-ask-proximitii"></div>

<script src="https://widget.proximitii.com/v1/core/proximitii-widget.js?v=ask-104"></script>
<script>
ProximitiiWidgets.askProximitii({
  container: 'prox-ask-proximitii',
  widgetKey: 'PUT_YOUR_WIDGET_KEY_HERE',
  lat: 40.778832684988224,
  lon: -73.98103168840414
});
</script>

Always provide a valid widgetKey, lat and lon. All other settings are optional and use the defaults below.

Customization

Pass optional settings in the ProximitiiWidgets.askProximitii configuration object.

Location and Content Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
ContainerID of the element where the widget renders.N/AValid element IDcontainer
Widget KeyYour public widget key.N/AValid widget keywidgetKey
LatitudeCenter latitude.N/A-90 to 90lat
LongitudeCenter longitude.N/A-180 to 180lon
RadiusLocal search radius in metres.500100 to 6,400radius
CountryCountry dataset for the location.usus or cacountry
TitleHeading above the questions.Have a Question About This Area?Text, up to 50 characters in the sandboxtitle
Title Font SizeHeading size.30px10px to 50pxtitleFontSize
AudienceTailors the question experience to the intended visitor.generalgeneral, homebuyers, rentersaudience
Show Suggested QuestionsShows or hides the suggested question cards.truetrue or falseshowSuggestedQuestions


Appearance Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show BorderShows or hides the widget border.truetrue or falseshowBorder
Map StyleSets the map presentation used in the widget.lightlight, bright, modern, baselinemapStyle
Primary ColorMain brand color.#607eb8Hex colorprimaryColor
Secondary ColorSecondary panel color.#f8fafcHex colorsecondaryColor
Font FamilyWidget font.Poppins, sans-serifCSS font familyfontFamily
Box StyleWidget container styling.shadowshadow or flatboxStyle

Download Report

The report button has three modes. The default referral mode opens the Local Insights report flow. Use lead to show a short contact form in the widget, or hidden to remove the button. Set the mode with data-download-report on the container.

ModeWhat visitors seeContainer setting
referral (default)Download Report button linking to Local Insights.No attribute needed
leadDownload Report button with a contact form.data-download-report="lead"
hiddenNo Download Report button.data-download-report="hidden"

For example, to use lead mode, replace the container in the installation code with:

<div id="prox-ask-proximitii" data-download-report="lead"></div>