Skip to content

Using the OpenAI API to chat with HERE's discover endpoint.

Notifications You must be signed in to change notification settings

txtData/ChatWithGS7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Using GPT to chat with HERE's discover endpoint

Blog posts

There are two blog posts published on HERE's developer blog that explain this project in more detail:

Prerequisites

OPENAI_API_KEY and HERE_API_KEY need to be set in environment variables.

What does the script do?

For a user question like

"In which districts in Berlin are streets named Kastanienallee?"

the script uses GPT to create an API call like

https://discover.search.hereapi.com/v1/discover?at=52.5200,13.4050&q=Kastanienallee%20Berlin

Based on the API response, GPT is then used to create a response like the following:

"Streets named Kastanienallee can be found in the following districts in Berlin: Prenzlauer Berg, Rosenthal, Hellersdorf, Westend, and Blankenburg."

About

Using the OpenAI API to chat with HERE's discover endpoint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages