Code Examples

Icon Card background
Cookie Geolocation

Implements an EdgeWorker to add geolocation data to a cookie in the HTTP response. This cookie returns location information about the client where the request originates, including a lookup from custom data.

View Case
Icon Card background
Geolocation

This example implements a microservice GEO-Location API call that returns location information about the client where the request originates.

View Case
Icon Card background
Store Locator

Implements a microservice store locator API call that returns the two stores nearest to the provided latitude and longitude.

Note: Latitude and Longitude values are hardcoded for demo purposes.

View Case
Icon Card background
Traffic Allow

Implements an allow list depending on the geographic locale of the end user. If the user is arriving from United States embargoed countries, a 403 deny will occur.

View Case