Icon

Deploying location-based services at the edge enables more personalized and relevant user experiences by quickly providing client location information without contacting the origin server. This improves response times and enhances the accuracy of location-dependent services.

Loading...

https://www.edgecompute.live/geolocation

Copied to clipboard!

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

Icon landscape
Geolocation Information

Apply dynamic business logic based on the request's origin location information.

Icon landscape
Personalized Experience

Provides personalized content based on location, device, or request details.

Related Examples

View More
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
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