Express Redis Upstash

This demo site uses the ioredis library to interact with a Upstash data store. The application allows users to search for cities based on their location by specifying coordinates and distance. This app utilizes the Redis client's geospatial commands to search for cities within a specified radius of a given location.

Each page starts a timer to measure how long each request takes to complete, and logs the time in the console upon completion of the request. Please open the developer console to check the request timing information.

Examples

Your location

This page uses a browser's geolocation capabilities to detect user's location. It will only work if you allow it.

Read more
Cities within 6000 km of the North Pole

This page allows users to search for cities within a certain radius of the North Pole using data in the Upstash data store.

Read more
Nearby international cities

This page utilizes browser's geolocation capabilities to detect the user's location and returns the nearby international cities within a specified radius from the Upstash data store.

Read more
Nearby US cities

This page utilizes browser's geolocation capabilities to detect the user's location and returns the nearby US cities within a specified radius from the Upstash data store.

Read more
Nearby cities by coordinate and distance

This page finds cities near a specific location using longitude, latitude coordinates, and distance in kilo meter.

Read more