UX Designinteraction designvisual design
Transforming Query Building for Geospatial Analytics
- Role
- Lead Product Designer
- Team
- The CEO, two developers and four analysts
- Scope
- Query builder: research, interaction design and UI
- 66% less time on key tasks
- 74.4% fewer campaigns deleted or recreated
Building a query meant retyping codes into a form that kept its options to itself. I designed a builder where a chip only fits where it works.
context
Gone fishing?
Big data is like a massive ocean of information. We were building Flycaster, a tool to help retrieve useful data nuggets from this vast amount of geospatial data, allowing users to view data from entities all over the world. Built for defense purposes, we needed to enable locating and monitoring interesting data and activity with ease.
As the new lead designer on this project, I inherited a proof-of-concept version of Flycaster—it worked, but it wasn't very usable. This feature in particular was intended to help users create custom queries for geospatial data. Imagine searching for Diary of a Wimpy Kid in the Library of Babel. Creating a query with Flycaster is like asking a librarian for help. My task with this module was to create that librarian for Flycaster.
the problem
The ones that got away
Users struggled to craft the right queries, leading to multiple attempts and unnecessary complexity. Inefficient queries placed a heavy load on the database, slowing down performance and increasing computational cost.
audit + research
Why?
I began with an audit of the proof-of-concept, combined with usability tests, query log analyses, and stakeholder interviews. Two things kept going wrong.
- The data.
There was no way to save a list of entities. So analysts noted codes, one at a time, either in digital lists, or on physical paper. Then they typed every code back into the alert form by hand. errors on the way in, and no error states to catch them.
- The commands.
Trigger conditions were too similar, too confusing and too limiting, and nothing showed that more of them could be stacked. more attempts per campaign, and more strain on the database.
- Low visibility and difficult error correction: users had to manually input aplhanumeric IDs with fuzzy search to aid them. Users would note down these IDs either in digital lists, or on physical paper. led to errors in inputting IDs, and correcting them was difficult due to low visibility.
- Confusing conditions made it difficult to form queries, users accidentally mixed up similar commands.
- Low affordance: could not tell that more conditions could be stacked. higher number of queries and strain on database.
One analyst summed up the form better than I could:
"I don't know what all these options mean. It feels like I'm filling in the blanks, but it won't do what I want."
key insights
Knowledge gap
Our audience was mostly non-technical folks who found conditions and operators confusing. They weren't going to hunt for the cleverest way to write a query, and they didn't love asking for help.
Mental models
Part of the problem was the structure of the UI itself. People treat a form as a checklist: each field demands one specific input, and nobody experiments with a checklist. The analysts were thinking in questions. The tool handed them paperwork.
exploration
I considered (and tested, and discarded) ways of bridging the knowledge gap.* This helped in coalescing the user experience objectives for this tool.
- Educational video content:
with tutorials explaining concepts and processes.
Fatal drawbacks: users tended to skip these, and were expensive to produce.
- Simplified form:
with step-by-step fields to reduce cognitive load.
Fatal drawbacks: possibilities of query building still unclear.
- Detailed onboarding:
with tooltips and guides describing each step.
Fatal drawbacks: high cognitive load, relied too much on recall of information.
- Insight
Users needed an action-oriented interface that surfaced possibilities without requiring deep technical expertise.
- Insight
The absence of feedback loops during query construction led to trial-and-error workflows.
design objectives
Make query building as easy and intuitive as constructing a sentence.
- For analysts
"When I'm building a query, I want the system to understand the relationships between data points and suggest how to connect them."
the solution
Introducing, the campaign creator
The Campaign Creator is a stackable query builder interface: you construct a query piece by piece. It shows you what's possible, and makes sure your query will run.
Campaign Creator Canvas
- Color-coded chips and slots.
You can see where a piece fits before you pick it up.
- Tools on the side.
Cluster entities or polygons, find entities in common, view what's included.
- Color-coded query chips act as visual signifiers, guiding the user and reducing cognitive load.
- Real-time visualization: users can see their query logic as it takes shape.
- Enhanced discoverability: a persistent command palette ensures users can explore all available options.
- Iterative flexibility: buildable components support experimentation and refinement.
Visibility of system status
- Only viable chips are enabled.
Sequences that make no sense are switched off, so an invalid query is hard to build by accident.
- Feedback before the run.
The builder flags a problem while you're still building, and holds campaign creation until it's fixed.
- Validation and feedback: integrated feedback mechanisms to flag issues proactively.
- Query-based tool activation or deactivation assists users in comprehending the extent of their potential actions.
- Only viable chips enabled to help with efficient query building.
- Prevention of campaign creation until issues have been resolved, or the query is complete.
Progressive disclosure
Modifiers like date range and distance appear when a command needs them, and stay out of the way otherwise.
Error prevention with data input
No more copying IDs by hand.
A major source of errors was the long, alphanumeric entity and polygon IDs, which no reasonable person could be expected to remember. Two fixes took care of it, and both landed in the final builder.
The first was uploading CSV files directly, which removed the typing and the cumbersome copy-pastes.
The second removed the need to note IDs down at all. Analysts already spent their time browsing polygons and entities on the map, picking out the interesting ones. So whatever they select there is waiting for them as chips when they open Campaign Creator.
- With the whole builder in place: 66% less time on key tasks.
- 74.4% fewer campaigns deleted or recreated.
One analyst's review, in full:
"I don't even need instructions. It makes sense."
final thoughts
Done fishing.
We set out to make query building as easy as constructing a sentence, and the chips got analysts most of the way there. A campaign reads left to right, and the builder objects before a bad query costs anything.
I tested the easy fixes first: videos, onboarding, a simpler form. None of them worked, which made the case for a rebuild. The developers were in from the start, so I never designed something we couldn't build.
The obvious next step was letting analysts type a question in plain language and showing it back to them as chips to check. If I picked it up now, I'd keep the chips next to the typing. They let an analyst check what their words turned into, and they show what is and isn't possible with a campaign.
* contact to see the blood, sweat, and tears iterations.