How to Batch Geocode Addresses with Copilot
Batch geocode in your IDE with Copilot and ToolRouter. Enrich address data without leaving your editor.
ToolAddress GeocodingCopilot 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.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Address Geocoding tool:
- In Copilot Chat: "Geocode all addresses in this file" and provide the file path
- Copilot processes the list and returns coordinates for each entry
- Ask: "Write the results back to a new JSON file with coordinates added"
Example Prompt
Try this with Copilot using the Address Geocoding tool
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