If you would like to include Geo Search in your InstantSearch implementation but do not want to include a map widget (ie: useGeoSearch()), you can do so via the <Configure>
widget.
For this example in React InstantSearch, let's say you would like to rank results by proximity to the user's IP address. As long as you have enabled Geo Search by properly adding geolocation data to your records, you can simply pass the parameter aroundLatLngViaIP={true}
as a search parameter of the<Configure>
widget (which is a child component of your<InstantSearch>
widget).
<InstantSearch
searchClient={searchClient}
indexName="YOUR-INDEX-NAME"
>
<Configure
aroundLatLngViaIP={true}
/>
<Hits hitComponent={Hit} />
...