{"id":27284344,"url":"https://github.com/pnvdev/weather-location-search","last_synced_at":"2025-04-11T18:58:05.830Z","repository":{"id":287253905,"uuid":"964128336","full_name":"pnvdev/weather-location-search","owner":"pnvdev","description":"A modern web application built with Next.js that allows users to search and visualize locations on an interactive map. The application features automatic location detection, predictive search, and a clean, responsive interface.","archived":false,"fork":false,"pushed_at":"2025-04-11T04:51:25.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T05:24:03.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://weather-location-search-beta.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pnvdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T18:22:40.000Z","updated_at":"2025-04-11T04:51:28.000Z","dependencies_parsed_at":"2025-04-10T20:03:47.530Z","dependency_job_id":null,"html_url":"https://github.com/pnvdev/weather-location-search","commit_stats":null,"previous_names":["pnvdev/location-search","pnvdev/weather-location-search"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnvdev%2Fweather-location-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnvdev%2Fweather-location-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnvdev%2Fweather-location-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnvdev%2Fweather-location-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnvdev","download_url":"https://codeload.github.com/pnvdev/weather-location-search/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465290,"owners_count":21108243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-11T18:58:05.387Z","updated_at":"2025-04-11T18:58:05.821Z","avatar_url":"https://github.com/pnvdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Location Search\n\nA modern web application built with Next.js that allows users to search and visualize locations on an interactive map. The application features automatic location detection, predictive search, and a clean, responsive interface.\n\n## Features\n\n- 🔍 **Predictive Search**: Real-time location suggestions as you type\n- 🗺️ **Interactive Map**: Visual representation of searched locations\n- 📍 **Automatic Location Detection**: Automatically centers the map on the user's location\n- ⚡ **Debounced Search**: Optimized search performance with debouncing\n- 🎨 **Modern UI**: Built with Shadcn UI components for a polished look\n- 🌓 **Dark Mode Support**: Automatically adapts to system preferences\n\n## Tech Stack\n\n- **Framework**: Next.js 14 with App Router\n- **UI Components**: Shadcn UI\n- **Styling**: Tailwind CSS\n- **Maps**: Pigeon Maps\n- **Geocoding**: OpenStreetMap Nominatim\n- **Type Safety**: TypeScript\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18.17 or later\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/pnvdev/location-search.git\n   cd location-search\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n3. Run the development server:\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n4. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## How It Works\n\n1. **Location Detection**:\n\n   - The application automatically detects the user's location using server-side IP geolocation\n   - Falls back to a default location if detection fails\n\n2. **Search Functionality**:\n\n   - Type in the search box to get real-time location suggestions\n   - Click on a suggestion or press Enter to center the map on the selected location\n   - The map updates instantly with a marker at the selected location\n\n3. **Map Interaction**:\n   - Interactive map with zoom and pan controls\n   - Marker indicates the current selected location\n   - Smooth transitions when moving between locations\n\n## Development\n\n### Project Structure\n\n```\nsrc/\n├── app/                 # Next.js app router\n│   ├── actions.ts       # Server actions\n│   └── page.tsx         # Main page component\n├── components/          # React components\n│   ├── MapSearch.tsx    # Main map and search component\n│   └── ui/             # Shadcn UI components\n└── lib/                # Utility functions\n```\n\n### Environment Variables\n\nNo environment variables are required for development. The application uses free services for all functionality.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnvdev%2Fweather-location-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnvdev%2Fweather-location-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnvdev%2Fweather-location-search/lists"}