{"id":21012618,"url":"https://github.com/developersdigest/gpt-4-leaflet-next-js","last_synced_at":"2025-08-23T13:19:57.273Z","repository":{"id":197010849,"uuid":"697811757","full_name":"developersdigest/GPT-4-LEAFLET-NEXT-JS","owner":"developersdigest","description":"This project demonstrates the integration of GPT-4 and React-Leaflet to visualize geographic data. The app fetches coordinates and a location title from GPT-4 based on a user query, and then renders them as markers on a Leaflet map.","archived":false,"fork":false,"pushed_at":"2023-09-28T14:54:09.000Z","size":22813,"stargazers_count":17,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-15T04:33:22.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/developersdigest.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}},"created_at":"2023-09-28T14:23:01.000Z","updated_at":"2025-03-30T16:44:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0ae3357-e2cb-4c53-9a80-3c4b9adee0d8","html_url":"https://github.com/developersdigest/GPT-4-LEAFLET-NEXT-JS","commit_stats":null,"previous_names":["developersdigest/gpt-4-leaflet-next-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developersdigest/GPT-4-LEAFLET-NEXT-JS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FGPT-4-LEAFLET-NEXT-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FGPT-4-LEAFLET-NEXT-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FGPT-4-LEAFLET-NEXT-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FGPT-4-LEAFLET-NEXT-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersdigest","download_url":"https://codeload.github.com/developersdigest/GPT-4-LEAFLET-NEXT-JS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersdigest%2FGPT-4-LEAFLET-NEXT-JS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749047,"owners_count":24814114,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-19T09:37:53.223Z","updated_at":"2025-08-23T13:19:57.248Z","avatar_url":"https://github.com/developersdigest.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT-4 and React-Leaflet Map Integration\n\n![Demo GIF](readme-gif.gif)\n\nThis project demonstrates the integration of GPT-4 and React-Leaflet to visualize geographic data. The app fetches coordinates and a location title from GPT-4 based on a user query, and then renders them as markers on a Leaflet map.\n\n## Table of Contents\n- [Introduction](#introduction)\n- [Technologies](#technologies)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Demo Video](#demo-video)\n\n## Introduction\nThe application utilizes GPT-4 for generating coordinates and a title for a location based on the user's request. Once the information is fetched, React-Leaflet is used to mark that location on the map.\n\n## Technologies\n- OpenAI SDK\n- Next.js\n- React.js\n- React-Leaflet\n- Node.js\n\n## Installation\n1. Clone the repository\n```\ngit clone https://github.com/developersdigest/GPT-4-LEAFLET-NEXT-JS\n```\n2. Navigate to the project folder and install dependencies\n```\ncd your-project-folder\nnpm install\n```\n3. Add your OpenAI API key to a `.env` file\n```\nOPENAI_API_KEY=your-api-key-here\n```\n4. Start the development server\n```\nnpm run dev\n```\n\n## Usage\n1. Open the application in a browser.\n2. Enter a query in the input field.\n3. Hit \"Submit\" or press Enter to get the coordinates and title which will be displayed on the map.\n\n## Demo Video\nYou can watch the demo video [here](https://youtu.be/xVkbdegieBg).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fgpt-4-leaflet-next-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersdigest%2Fgpt-4-leaflet-next-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersdigest%2Fgpt-4-leaflet-next-js/lists"}