Posts

Showing posts from April, 2023

Google Bard writing code for drawing maps via Google Maps

Image
There has been a lot of hype about large language models (LLM), such as ChatGPT, Google Bard, and others. These conversational AI have improved and are beginning to understand how to take basic requirements and write code. To test this out, I asked Google Bard to show me how to start using the Google Maps API. Here is the initial question and result: can you write me some code using the google maps API? As you can see, it chose to write a very simple example with bare-bones javascript. Of course, if you aren't familiar with javascript or HTML, this example isn't very helpful and won't work without writing some additional code. So, I followed-up and asked Bard to write the HTML for this example. can you write the html for that as well? This is pretty basic, but impressive that I could ask Bard a simple question and refine the output through a conversation.  I'm looking forward to sharing more of these AI generated code examples using various mapping APIs. Cheers!