Giter Site home page Giter Site logo

mhezel / travel_mapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmartinshort/travel_mapper

0.0 0.0 0.0 2.34 MB

Calls ChatGPT to make an itinerary and then uses Google Maps to get directions. Makes a map of the result

License: MIT License

Shell 0.38% Python 94.94% Makefile 4.68%

travel_mapper's Introduction

TravelMapper

Documentation Status

Basic usage

A travel agent that uses calls to OpenAI and Google Palm to build an itinerary and then Google Maps API to gather directions.

Create a `.env` file in the top level directory (i.e. travel_mapper) that contains the following lines

OPENAI_API_KEY = {your open ai key}
GOOGLE_MAPS_API_KEY = {your google maps api key}
GOOGLE_PALM_API_KEY = {your google palm api key}

To test it out in a python console, try the following

from travel_mapper.test_without_gradio import test
test()

This will use a default query and is useful to check if everything is installed correctly. You can also run test() with a custom query, as in

test(query="A 2 day trip around Los Angeles that includes \
the best views of the Hollywood sign")`

To run the gradio app, which allows more interactions with the models, run the following from a terminal

python travel_mapper/user_interface/driver.py

You can also use the run script, which sets the pythonpath correctly if it's run from the top level directory. You may need to give it permissions first

travel_mapper/user_interface/run.sh

You should then be able to open the app locally

Please report errors or issues to [email protected]

Features

  1. Type your travel request, choose the model to use and it will generate a detailed itinerary and a map showing the suggested route

docs/images/example_screenshot_1.png

------------------
  1. Basic error handling: If you enter an unrealistic request, it will explain why the request is unreasonable and may suggest an alterative

docs/images/example_screenshot_2.png

------------------

3. Generate a trip with more stops than the google maps API query limit for waypoints (which is 25 as of the time pf writing) It does this by breaking the route in the segments and sending multiple requests

docs/images/example_screenshot_3.png

------------------

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

travel_mapper's People

Contributors

rmartinshort 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.