Using enable_geolocation in the drop-in component
Purpose
Use enable_geolocation when your platform does not already know the end user's address and you want Drop-in Component to use IP-based geolocation during quote generation.
This is helpful in situations where your platform does not collect the user's address details. Usage of IP geolocation requires additional configuration from Vertical Insure and will need to be discussed with the Vertical Insure implementation team.
How to enable it
Set enable_geolocation: true at the top level of your Drop-in Component initialization config.
{
"client_id": "test_...",
"enable_geolocation": true,
"product_config": {
"registration-cancellation": [
{
"customer": {
"email_address": "test01@verticalinsure.com",
"first_name": "John",
"last_name": "Doe",
"state": "MN",
"postal_code": "55414"
},
"policy_attributes": {
"insurable_amount": 50000,
"event_start_date": "2026-01-01",
"event_end_date": "2026-01-02",
"participant": {
"first_name": "John",
"last_name": "Doe"
}
}
}
]
}
}Behavior
- When
enable_geolocationistrue, Drop-in Component uses geolocation-aware quote behavior. - When the flag is omitted or set to
false, standard quote behavior is used. - This flag applies during quote generation and does not require UI changes to offer selection behavior.
Note
- When making a purchase call, do not provide
customer.street,customer.city,customer.state, orcustomer.postal_code. - If those values change between quote and purchase, the purchase call will fail.