π Pata Places is a Single Page Application (SPA) that helps users find Points of Interest (POIs) near them in Kenya. πΊοΈ Using the OpenStreetMap Overpass API, users can search for locations π, use GPS π to find nearby places, and view results on an interactive map πΊοΈ.
Pata Places is a Single Page Application (SPA) designed to help users find Points of Interest (POIs) near them in Kenya. Using the OpenStreetMap Overpass API, users can search for locations, use GPS to find nearby places, and view results on an interactive map.
- π Search for Places β Users can enter a location or use GPS to find nearby POIs.
- π POI Categories β Select categories like hospitals, schools, restaurants, etc.
- πΊοΈ Interactive Map β Displays POIs on a Leaflet.js-powered map.
- π Light/Dark Mode β Toggle between themes for a personalized experience.
- βΉοΈ POI Details β View information about each POI in a card format.
We will use the OpenStreetMap Overpass API, which allows querying geographic data based on specific locations and categories. It is free and provides detailed, real-time geographic data.
/src
βββ /components
β βββ Navbar.jsx
β βββ SearchBar.jsx
β βββ POICategories.jsx
β βββ MapDisplay.jsx
β βββ POIList.jsx
β
βββ /pages
β βββ Home.jsx
β
βββ /utils
β βββ fetchPOIs.js
β
βββ App.jsx
βββ main.jsx
- Home.jsx β The main page where all components are rendered.
- fetchPOIs.js β A utility function to fetch POIs from the Overpass API.
- App.jsx β The main component that sets up routing and global state.
- main.jsx β The entry point of the React application.
- Frontend: React.js, Tailwind CSS, Leaflet.js
- State Management: useState & useEffect
- API: OpenStreetMap Overpass API
- Deployment: Vercel or Netlify
Made with β€οΈ by Valentine Irungu