Skip to content

SRCarlo/UrbanEye_Location-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ™οΈ UrbanEye – City Locator

Live Demo: urban-eye-location-finder.vercel.app

UrbanEye is an interactive city locator web app built with React and Leaflet.js. It allows users to search any city worldwide, view its location on a dynamic map, and explore essential city details like population, coordinates, timezone, and more. Users can toggle between Street and Satellite map views for a richer experience.


πŸš€ Features

  • πŸ” City Search: Search any city using the Open-Meteo Geocoding API.
  • πŸ—ΊοΈ Interactive Map: View the exact city location using React Leaflet.
  • 🌍 Map Modes: Switch between Street View (OpenStreetMap) and Satellite View (ESRI World Imagery).
  • πŸ“Š City Details: Displays region, subregion, coordinates, population, timezone, and elevation.
  • πŸ’‘ Smooth Animations: Map zooms smoothly to the selected city.
  • 🧭 Accessible Design: Keyboard navigation, ARIA labels, and responsive layout.
  • πŸ“± Responsive UI: Fully optimized for desktop and mobile.

🧩 Tech Stack

Category Technology
Frontend React.js
Mapping React Leaflet + Leaflet.js
Icons React Icons (FontAwesome)
API Open-Meteo Geocoding API
Styling Inline CSS with Google Fonts (Audiowide)
Deployment Vercel

πŸ—οΈ Project Structure

UrbanEye_Location-Finder/
β”‚
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ favicon.ico
β”‚   └── index.html
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ CityLocator.jsx     # City search and map logic
β”‚   β”‚   └── Footer.jsx          # Footer section
β”‚   β”‚
β”‚   β”œβ”€β”€ App.jsx                 # Main app entry combining components
β”‚   β”œβ”€β”€ main.jsx                # Renders App to the DOM
β”‚   └── index.css               # Optional global styles (minimal)
β”‚
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.js
β”œβ”€β”€ .gitignore
β”‚
└── node_modules/



βš™οΈ Setup Instructions

1. Clone the Repository

git clone https://github.com/SRCarlo/UrbanEye_Location-Finder.git
cd UrbanEye_Location-Finder

2. Install Dependencies

npm install

3. Run the Project Locally

npm run dev

or if using CRA:

npm start

4. Open in Browser

Visit:

http://localhost:5173/

(or the port shown in your terminal)


🌐 API Reference

Geocoding API: Open-Meteo Geocoding

Example Endpoint:

https://geocoding-api.open-meteo.com/v1/search?name=London&count=10

🧠 Key Learnings

  • Integrating Leaflet maps with React components.
  • Handling asynchronous API calls and managing loading/error states.
  • Designing accessible and responsive UIs.
  • Implementing dynamic map updates using React Leaflet’s useMap() hook.

πŸ› οΈ Future Enhancements

-πŸ” City Search: Search any city using the Open-Meteo Geocoding API. -πŸ—ΊοΈ Interactive Map: View the exact city location using React Leaflet. -🌍 Map Modes: Switch between Street View (OpenStreetMap) and Satellite View (ESRI World Imagery). -πŸ“Š City Details: Displays region, subregion, coordinates, population, timezone, and elevation. -πŸ’‘ Smooth Animations: Map zooms smoothly to the selected city. -🧭 Accessible Design: Keyboard navigation, ARIA labels, and responsive layout. -πŸ“± Responsive UI: Fully optimized for desktop and mobile.


πŸ‘¨β€πŸ’» Author

Developer: [SRCarlo]
Live Demo: urban-eye-location-finder.vercel.app


πŸ“ License

This project is licensed under the MIT License – feel free to use, modify, and share. MIT License

Copyright (c) 2025 SRCarlo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND...

About

πŸš€ UrbanEye is a fast and interactive city search app powered by React, Vite, and Leaflet. Explore any city worldwide with smooth animations, satellite maps, and rich location data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors