Google Earth Engine Adds AI to Code Editor for Natural Language Geospatial Analysis

A new Ask panel brings Gemini into the Earth Engine Code Editor to generate, explain, troubleshoot and optimize geospatial scripts. It reads the active script and imported assets automatically and runs on the user's own Gemini API key.
Google Earth Engine Adds AI to Code Editor for Natural Language Geospatial Analysis
Google Earth Engine Adds AI to Code Editor for Natural Language Geospatial Analysis

Google Earth Engine users can now ask Gemini to write, explain, debug and speed up their scripts without leaving the Code Editor. The new Ask panel, which sits on the right side of the editor, became available globally on Monday, Google said in a Google Cloud blog post.

There’s a catch for anyone expecting it to be free: Ask runs on the user’s own Gemini API key, created in Google AI Studio. Free-tier keys work within limits, while paid-tier keys are billed for usage under Gemini API pricing.

The assistant automatically reads the full text of the active script, any imported assets and geometries, and the current chat history, so users don’t have to paste in code or describe their datasets. At launch, users can pick Gemini 3 Flash Preview, Gemini 3.1 Pro Preview or Gemini 3.5 Flash. Optional tools let it search Earth Engine’s documentation or its Data Catalog, or ground answers in Google Search, though the Search option can’t be combined with the other two.

Earth Engine Code Editor Ask panel showing a deforestation prompt and Gemini's generated JavaScript response
The Ask panel in the Earth Engine Code Editor. Image: Google

Google’s example prompt asks for a script that loads Sentinel-2 imagery for 2025 over Boulder, Colorado, applies a cloud mask, calculates NDVI and adds the median composite to the map. Generated JavaScript can be copied or inserted directly; if the script already has code, a side-by-side diff appears for review before changes are accepted.

Error messages in the Console now carry a “Troubleshoot” button that opens Ask with the error and a request to diagnose it. Users can also ask for help with scripts that run slowly or throw “computation timed out” or “too many concurrent aggregations” errors, and Gemini will suggest fixes such as filtering earlier or moving client-side loops to the server.

Google’s developer guide warns that the assistant “may occasionally provide incorrect or unexpected responses” and tells users to review and test any code before relying on it. Earth Engine is part of Google Earth AI, the company’s collection of geospatial models and datasets.

Subscribe for Updates

DevNews Newsletter

The DevNews Email Newsletter is essential for software developers, web developers, programmers, and tech decision-makers. Perfect for professionals driving innovation and building the future of tech.

By signing up for our newsletter you agree to receive content related to ientry.com / webpronews.com and our affiliate partners. For additional information refer to our terms of service.

Notice an error?

Help us improve our content by reporting any issues you find.

Get the WebProNews newsletter delivered to your inbox

Get the free daily newsletter read by decision makers

Subscribe
Advertise with Us

Ready to get started?

Get our media kit

Advertise with Us