redis-developer / introducing-the-geosearch-command

Demo application using a Bulma / Leaflet JS / JavaScript front end and Python / Flask backend to demonstrate the GEOSEARCH command added in Redis 6.2.
https://developer.redis.com/
MIT License
14 stars 13 forks source link

Add an extra route that returns the distance between two stations #3

Closed simonprickett closed 2 years ago

simonprickett commented 2 years ago

Add an extra route to the Flask backend that uses the Redis GEODIST command to return the distance in miles between two specified stations.

It should be at /api/distance/<first_station_name>/<second_station_name>/<distance_unit>.

Documentation for the GEODIST command can be found here: https://redis.io/commands/geodist

This is part of our participation in Hacktoberfest 2021. Learn how to complete this issue here: https://developer.redis.com/hacktoberfest/

Need help or want to talk to us? Join us on Discord where we have a dedicated Hacktoberfest channel: https://discord.gg/ueQwKUh5Z3

DiptoChakrabarty commented 2 years ago

Can I take this up

simonprickett commented 2 years ago

@DiptoChakrabarty absolutely! Check out our guide at https://developer.redis.com/hacktoberfest and have fun! Thanks!