---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/address-geocoding/use-cases/batch-geocode-address-lists/copilot
---
# How to Batch Geocode Addresses with Copilot

Copilot geocodes address lists from within your IDE and writes enriched data directly back to your project files. Process addresses in seed data files, populate coordinate fields in database migrations, and generate GeoJSON features from address lists without leaving your editor.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Geocode all addresses in this file" and provide the file path
3. Copilot processes the list and returns coordinates for each entry
4. Ask: "Write the results back to a new JSON file with coordinates added"

## Example Prompt

```
Geocode every address in my stores.json file and add lat/lng fields to each record.
```

## Tips

- Copilot can read address data from files and write enriched results directly back
- Use it to populate coordinate fields in seed data and database migrations
