Code Monkey home page Code Monkey logo

nearest-coffee-map-finder-dvmn's Introduction

Nearest Coffee Finder

This Python application uses the Yandex Maps Geocoding API to find the nearest coffee places to the user's location. It generates an interactive map with markers for the user's location and the closest coffee spots.

Getting Started

To use this code, clone the repository to your local machine.

git clone https://github.com/<your-github-username>/coffee-locator.git

cd coffee-locator

Prerequisites

Before you continue, ensure you have met the following requirements:

You have installed Python 3.8 or later. You have a Yandex Maps API token. If not, you can get it here. You have the requests, folium, geopy and flask Python packages installed. If not, you can install them using pip:

pip install requests folium geopy flask

How to Use

You should save your Yandex Maps API token to an environment variable YANDEX_MAP_TOKEN:

export YANDEX_MAP_TOKEN=<your-yandex-map-token>

You can then run the script with:

python coffee_locator.py

The application will ask you for your current location. After entering your location, it will create a map with the nearest coffee spots marked on it and save it as index.html. It will then start a Flask server at http://0.0.0.0:5000, where you can see the generated map.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Project Goals

The code is written for educational purposes on online-course for web-developers dvmn.org.

nearest-coffee-map-finder-dvmn's People

Contributors

taralas209 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.