Coveo Google Api Position Provider
Coveo Google Api Position Provider
Legacy feature
This article pertains to the Coveo Hive framework which is now in maintenance mode. Choose one of Coveo’s more modern, lightweight, and responsive libraries for any future search interface development. See the search interface Implementation guide for more details. |
This rendering has been deprecated. You can replace your Coveo Google API Position Provider renderings with the Coveo Navigator Position Provider rendering. |
This rendering is used to resolve the current user position using the Google API.
Usage notes
-
The Coveo Distance Resources rendering must first be added to the page. Subsequently, the Coveo Google API Position Provider can be inserted in the Distance Providers placeholder of the Coveo Distance Resources rendering.
-
You must provide your own Google API key to use this rendering.
Data source options
The following table lists the available data source options for this rendering.
Option name | Description |
---|---|
Google API key |
The API key to use for the Google Geolocation API. |
DOM unique ID |
Randomly generated HTML element ID. |
Sample HTML Output
<div class="CoveoGoogleApiPositionProvider" data-google-api-key='{...}'></div>