Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Geo-Search

A Redis Stack-based geospatial search API for managing and querying gas stations. This project demonstrates storing, retrieving, and searching geospatial data using Redis GEO commands in ASP.NET Core.


🌟 Features

  • Store gas stations with geospatial coordinates in Redis
  • Search gas stations within a bounding box
  • Find the nearest gas station to a coordinate
  • Seed sample gas stations automatically via a background service
  • Use aversine distance formula.
Gemini_Generated_Image_sravzksravzksrav

Technology Stack

  • ASP.NET Core 7
  • C# 11
  • StackExchange.Redis (v2.7+) for Redis Stack integration
  • Redis Stack (with GEO support)

Getting Started

Prerequisites

  • .NET 7 SDK
  • Redis Stack running locally or in Docker
  • (Optional) VS Code with REST Client extension for testing

Clone the Repository

git clone https://github.com/mahdidelzendeh72/Geo-Search.git
cd Geo-Search

Configure Redis Connection

{
  "ConnectionStrings": {
    "Redis": "localhost:6379"
  }
}

Run the Application

dotnet run

API Endpoints

Endpoint Method Description
/api/gasstationgeo/set POST Add or update gas station geo data
/api/gasstationgeo/search-bounding-box POST Search gas stations within a bounding box
/api/gasstationgeo/find-nearest-gas-station POST Find the nearest gas station to a coordinate

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages