Proximitii Book a Demo

Community Highlights Widget Documentation

Present community scorecards and local highlights together. Read the installation details, parameters and examples.

The Community Highlights Widget displays up to 10 community scorecards and configurable local highlights for a selected location and radius.

Community Highlights

Installation

Add the following embed code to your page or template. Replace the widget key and coordinates with your own values.

<div id="prox-community-highlights"></div>

<script src="https://widget.proximitii.com/v1/core/proximitii-widget.js?v=34"></script>

<script>
ProximitiiWidgets.communityHighlights({
  container: 'prox-community-highlights',
  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 fall back to the defaults listed below.

Customization

The following Community Highlights Widget customization options are available.


General Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
ContainerThe ID of the div where the widget renders.N/AAny valid element IDcontainer
Widget KeyYour public widget key.N/AValid Proximitii widget keywidgetKey
LatitudeSets the latitude of the center location.N/ADecimal between -90 and 90lat
LongitudeSets the longitude of the center location.N/ADecimal between -180 and 180lon
RadiusSets the local data search radius.500100 to 6400 metersradius
CountrySets the country dataset.usus or cacountry
LanguageSets the widget language.enen or frlanguage


Content Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
TitleSets the widget title.Community HighlightsAny valid texttitle
Title Font SizeSets the title font size.30pxCSS sizetitleFontSize
DescriptionSets the text shown below the title. The $radius token is replaced with the selected radius.A quick look at what stands out within a $radius radius.Any valid textdescription
Layout ModeControls whether scorecards and highlights render in separate rows or a combined layout.twoRowstwoRows or combinedlayoutMode
Show NavigationShows or hides carousel navigation controls.truetrue/falseshowNavigation
Show Download ReportShows or hides the download report button.truetrue/falseshowDownloadReport


Scorecard Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show ScorecardShows or hides the scorecard section.truetrue/falseshowTopSection
Section TitleSets the scorecard section title. Leave blank to hide it.ScorecardAny valid texttopTitle
Number of CardsSets the number of scorecards displayed.101 to 10topCardCount
Scorecard SelectionControls which scorecards are displayed and their order.All scorecardswalkability, shopping-essentials, transit-access, bike-access, schools, noise-level, local-economy, parks-recreation, neighbourhood-pace, community-feeltopSelectedCards
OrderControls scorecard order.highesthighest or customtopOrder
Show ScoresShows or hides numerical scores on scorecards.truetrue/falsetopShowScores
Show DescriptionsShows or hides scorecard descriptions.truetrue/falsetopShowDescriptions


Highlights Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show HighlightsShows or hides the highlights section.truetrue/falseshowHighlightsSection
Section TitleSets the highlights section title. Leave blank to hide it.HighlightsAny valid texthighlightsTitle
Number of CardsSets the number of highlights displayed.101 to 15highlightCardCount
Selection MethodControls how highlights are selected.randomStrongeststrongest, randomStrongest, customhighlightSelection
Custom CategoriesSets the categories used when the selection method is custom.All categoriesdiningEntertainment, shoppingEssentials, recreation, education, mobility, economy, communityLifestylehighlightCustomCategories
Show Named POI CardsShows or hides highlighted nearby places.truetrue/falseshowNamedPoiCards
Show Demographic-Based CardsShows or hides demographic-based highlights.truetrue/falseshowDemographicCards
Minimum ScoreSets the minimum score required for a highlight.11 to 10highlightMinimumScore


Combined Layout Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Combined TitleSets the combined layout title.Community HighlightsAny valid textcombinedTitle
Number of CardsSets the number of cards in the combined layout.101 to 15combinedCardCount
Card TypesSets the card types included in the combined layout.All card typescommunityScores, lifestyleHighlights, namedPlaces, demographicHighlightscombinedCardTypes
Show ScoresShows or hides scores in the combined layout.truetrue/falsecombinedShowScores
OrderControls combined card order.highesthighest, custom, or randomizedcombinedOrder
Maximum ScorecardsLimits scorecards in the combined layout.50 to 15combinedMaxScoreCards
Maximum Named POI CardsLimits named place cards in the combined layout.30 to 3combinedMaxNamedPoiCards


Appearance Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show BorderShows or hides the widget border.truetrue/falseshowBorder
Primary ColorSets the primary brand color.#607eb8Hex colorprimaryColor
Secondary ColorSets the card background color.#f8fafcHex colorsecondaryColor
Font FamilySets the widget font family.Poppins, Arial, sans-serifAny valid CSS font-familyfontFamily
Box StyleControls the widget container styling.shadowshadow or flatboxStyle