5 min readUpdated Mar 2, 2026

geoMap Documentation

Overview

The geoMap logic is designed to fetch geographic event data and return it as GeoJSON features, leveraging the GDELT (Global Database of Events, Language, and Tone) GEO 2.0 API. This functionality is ideal for visualization on map-based platforms, allowing users to visualize data geographically based on predefined queries and configurable parameters.

Settings

The geoMap logic offers a range of configurable settings that determine how the component operates and displays data. Below are the details for each setting:

1. query

2. timespan

3. country

4. theme

5. language

Functionality

The run function processes input parameters and invokes the getGeo function from the GDELT service library to obtain geographic event data. If the required query setting is missing, the function returns an error. The retrieved GeoJSON features are then transformed into a tabular format, enabling easy manipulation and downstream processing.

In case of any exceptions during data retrieval, an error message is captured and returned in the output.

Expected Data

The geoMap logic expects the following data types:

The output will be an array of objects that contain details such as event name, geographic lat and lon coordinates, count of occurrences, url providing additional information, source of the data, and tone associated with the events.

Use Cases & Examples

Use Case 1: Monitoring Global News Events

A global news organization can utilize the geoMap to visualize significant event occurrences around the world, filtering events based on specific themes such as "politics" or "environment". This allows reporters to quickly identify areas of interest and develop stories based on real-time data.

Use Case 2: Crowd Management for Large Events

Event organizers can leverage the geoMap to track crowd movements and assemble geographic event data for occasions like concerts or sports events. By monitoring real-time happenings, they can manage crowd control effectively, directing attendees when necessary.

Use Case 3: Research on Environmental Events

A research organization can use the geoMap to visualize and analyze environmental events globally. They can filter by specific themes related to climate issues and view patterns over selected time frames.

Example Configuration for Use Case 1: Monitoring Global News Events

To set up the geoMap for visualizing major political events from the past week, one might configure it as follows:

json
{
    "query": "politics",
    "timespan": "1w",
    "country": "USA",
    "theme": "politics",
    "language": "en"
}

In this configuration:

This setup provides a focused and manageable way to visualize recent political trends and important news stories.