ChatGPT-4 created and visualized the top 30 Wine Farms near Cape Town

Below is an interactive map showing the top 30 wine farms surrounding. I created it relatively quickly using ChatGPT-4!

Step 1: Ask ChatGPT to create a list of wine farms in and around Cape Town

I asked it to create a list of the top 30 wine farms in Cape Town and Stellenbosch. I asked that the list should also include an interesting fact about each of the wine farms.

ChatGPT-4 created and visualized the top 30 Wine Farms near Cape Town

It got stuck at number 19 on the list of wine farms. ChatGPT has said that it can only handle around 20 rows of data when submitting data to it through the chat interface, and it seems to only be able to output around 20 rows of data. But fear not you can simple ask it to continue on from where it got stuck.

If you look below you’ll see it can just continue on with the list if you ask it to.

ChatGPT-4 created and visualized the top 30 Wine Farms near Cape Town

Step 2: Ask ChatGPT to visualize the data using Python

The next step is to visualize the data using Python. Very simple for ChatGPT to do.

ChatGPT-4 created and visualized the top 30 Wine Farms near Cape Town

Here is the python code it created:

import folium

# Wine farm data
wine_farms = [
    {'name': 'Groot Constantia', 'fact': 'Oldest wine producing estate in South Africa (established in 1685)', 'coordinates': (-34.024925, 18.423246)},
    # ... add other wine farms here
]

# Create a map centered on Cape Town
m = folium.Map(location=[-33.9249, 18.4241], zoom_start=10)

# Add markers for each wine farm
for wine_farm in wine_farms:
    folium.Marker(
        location=wine_farm['coordinates'],
        popup=wine_farm['name'],
        tooltip=wine_farm['fact'],
    ).add_to(m)

# Save the map to an HTML file
m.save('wine_farm_map.html')

Step 3: Upload the HTML file to WordPress

I won’t cover this because it’s boring but suffice to say ChatGPT helped me do it very quickly.

Step 4: Take a look at the wine farms recommended by ChatGPT!

Each of wine farms includes an interesting fact about them!

map of cape town

My Other Blog posts

Looker Studio connection map
North American Sports Teams Data Visualization
Senegal
Comparing DALL-E and Midjourney AI Images in 2024