Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
items-package
src
.gitignore
README.md
Sitecore.Spatial.GeoJson.sln
packages.config

README.md

sitecore-spatial-geojson-polygons

See post on implementation: https://josedbaez.com/2019/07/sitecore-polygon-search/

This repository contains the implementation of a Linq extension to be able to query on points that intercept GeoJson polygons in solr indexes.

Demo:

The demo provides a template with the spatial field, couple of sample items with polygons from openstreetmap that cover some cities; and a controller rendering that reads lat and lng from the querystring and returns the polygon of the item found (e.g. Big Ben’s coordinates http://sc9xp0.sc/?lat=-0.1268141&lng=51.5007292 will return London).

To use:

  • Update solr schema with fields under /config
  • Install sitecore package under /items-package
  • Add Polygon rendering to an item and browse it providing lat and lng querystring parameters
You can’t perform that action at this time.