What is the Local Storage API?
Data example
{
"custom_fields": {
"example_custom_field": "More data",
...
},
"formatted_url": "https://www.example.com/locations/seattle/",
"locations": [
{
"city": "Seattle",
"country": "US",
"formatted_address": "555 Main St., Seattle, WA 98121",
"location_name": "Seattle Location",
"phonemap": {
"phone": "(206) 555-5555"
},
"phonemap_e164": {
"phone": "+12065555555"
},
"postal_code": "98121",
"service_areas": "Greater Seattle area",
"state": "WA",
"street": "555 Main St"
}
]
}Site
Location
Code examples
Parsing the data
Check if local site data is set
Simple example of updating a div
Testing
Last updated