Create an ArcGIS Online Map with ChatGPT4

2122
0
10-27-2023 11:06 AM
TomBaker
Esri Regular Contributor
4 0 2,122

In preparing for a recent presentation on Generative AI for GIS teachers, I experimented a bit with ChatGPT4 and the “Browse with Bing” plugin.  I have not yet been able to do this with the Bing ChatGPT tool, Bard, Claude, or others.

ChatGPT can, with several rounds of code correction, generate the python code to run in an ArcGIS Online notebook, thereby creating an inline map in the Notebook or writing out a typical web map file to ArcGIS Online.  The process is still clumsy in my opinion, but it’s doable and maybe worth exploring for your future teaching or research.

My initial prompt: create a map of Kansas City, Ks with a marker at 11900 Meadow Lane, Leawood, KS using the ArcGIS API for Python

I returned error codes to ChatGPT about five times, creating an updated python script each time.  It is a more approachable workflow, if you have used the ArcGIS API for Python before.

Watch the video below for more details on the process I used.

Screenshot 2023-10-27 at 12.37.08 PM.png