Icon

EdgeWorker example to redirect visitors based on the location of the request to present location-relevant pages.

Loading...

https://www.edgecompute.com/edgeworkers/trafficRouting/redirectGeo

Copied to clipboard!

Redirecting visitors based on their geographic location ensures that users are presented with the most relevant content for their region. This improves user experience by providing localized content quickly and efficiently, reducing the need for additional server-side processing.

Icon landscape
Ease Development

Enable developers to modify application behavior without touching origin server logic.

Icon landscape
Geolocation Information

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

Icon landscape
Improve Reliability

Move compute cycles to the edge, reducing load and improving reliability and performance of origin servers.

Icon landscape
Reduce Latency

Speed up response times by moving work closer to users.

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