Skip to main content

Geosearch

Typesense supports powerful geosearch capabilities, which you use to sort results based on distance from a given point. Here's an example of how this would work.

First, we need to store coordinates somewhere. In this example, we will store them in custom fields on the Product entity:

Next, we need to define a custom mapping for the latitude and longitude fields:

Exclusive to Vendure Platform

This page is part of the Vendure Platform documentation. Access requires a valid Vendure Platform license.