Location for SalesIQ Scripts

You can use this widget to display the map interface and allow the visitor to pick a location from the map. You can specify a default location by providing the latitude and longitude details. If the default location is not specified, then the current location of the visitor's device will be considered.

 

AttributeMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorlocation
latNoTo specify the default latitude position to pin the location in the map.float
lngNoTo specify the default longitude position to pin the location in the map.float
radiusNoThe maximum distance radius that is allowed for the visitors to search and select from the provided default location.(n) kms - You can specify the distance radius integer in kilometres.
(n) miles - You can specify the distance radius integer number in miles.
The integer value can be Min 2 - Max 500.
labelNoTo specify the text displayed in the share action button.text
select_labelNoTo set customized text for widget values/slot submission actions

Instead of 'Schedule' custom text like 'Choose a slot" will be displayed

Note: Maximum character limit for values passed inside the select_label key is 20

Output:

The above is an example to get the preferred location for scheduling a delivery.

Use Case 1: The location is static that can be used to display specific location.

Copied{
  "type": "location",
  "lat": "37.686318",
  "lng": "-121.893427",
  "radius": "2 kms",
  "label":"Share Location",
  "select_label":"Send my locale"
}

Use Case 1: The location is dynamic that can be used to get location as input.

Copied{
  "type": "location",
  "label":"Share Location",
  "select_label":"Send my locale"
}