---
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/build-location-based-features/copilot
---
# How to Build Location Features with Copilot

Copilot builds location data pipelines from within your IDE. Geocode addresses from seed files, generate GeoJSON collections for Mapbox or Leaflet, and write coordinate enrichment scripts that transform raw address data into production-ready spatial datasets. The location feature takes shape alongside your code.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Geocode these addresses for my store locator feature"
3. Copilot geocodes the addresses and returns structured coordinate data
4. Ask: "Generate the GeoJSON file for these locations"

## Example Prompt

```
Geocode all addresses in my stores database seed file and generate a GeoJSON feature collection I can use with Mapbox.
```

## Tips

- Copilot can generate GeoJSON, KML, and other spatial data formats from geocoded results
- Use it to build and validate location data pipelines without leaving your IDE
