An open API service indexing awesome lists of open source software.

https://github.com/elizabethsiegle/bike_walk_route_map_generator

Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.
https://github.com/elizabethsiegle/bike_walk_route_map_generator

ai cloudflare cloudflare-workers-ai folium folium-maps langchain llama3-1 mapbox meta-llama-3-1-8b-instruct python streamlit workers-ai

Last synced: 8 days ago
JSON representation

Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.

Awesome Lists containing this project

README

        

## ROUTEME

### Generate an optimal path on a map a la Traveling Salesman Problem to hit different landmarks in an input city using Cloudflare Workers AI (using LlaMA-3.1), LangChain (for prompt templates and comma separated list output parser), Mapbox to create a map and get information about cities and landmarks in those cities, and Folium to edit the map.

![gif](https://github.com/elizabethsiegle/bike_walk_route_map_generator/blob/main/routemegif2.gif)

1. Enter a city🏙️ you wish to visit
-> get a few must-visit landmarks in your chosen city
2. Pick the landmarks🌁🗽 you want to visit.
3. Generate the shortest path between these landmarks.
4. Explore! 🗺️

You'll need
- a Mapbox access token--[get it here](https://docs.mapbox.com/help/getting-started/access-tokens/)
- your Cloudflare Account ID (the number/character sequence following https://dash.cloudflare.com/ when you login)
- a Cloudflare Workers AI API key (in your Cloudflare account dashboard, click AI on the lefthand side under R2, then Use REST API, then Create a Workers AI API token)

Download the `requirements.txt` and run `pip install`. Some main libraries this app uses includes LangChain, markdown, pandas, geopy, requests, streamlit, streamlit_searchbox, folium, typing, uuid, streamlit_folium, and folium.plugins (among others.)

Run on the command line with `streamlit run app.py`.