Getting Started with Straight Line Distance Calculator
Welcome to the Straight Line Distance Calculator! This tool calculates the as-the-crow-flies distance between pairs of locations using the haversine formula and Google's Geocoding API.
What Does This Tool Do?
The Straight Line Distance Calculator takes origin-destination address pairs and returns the direct point-to-point distance between them. Unlike driving distance, straight-line distance (also called "air miles" or "as the crow flies") measures the shortest path across Earth's surface without following roads.
For each pair, you get:
- Straight-line distance in miles or kilometers
- Geocoded latitude/longitude coordinates for both origin and destination
- Formatted, standardized addresses from Google Maps
- Status indicator showing whether the calculation succeeded
Pro Tip
What You Can Do
Calculate up to 100 origin-destination pairs at once
Mathematically precise great-circle distance calculations
Switch units with one click before calculating
Download results with coordinates for mapping and analysis
Upload CSV or Excel files with your address pairs
Access past calculations anytime from the History section
Setting Up Your Google Maps API Key
Before you can start calculating distances, you need a Google Maps API key. This is your personal key that connects the tool to Google's Geocoding service.
Watch our step-by-step video guide: How to Get a Google Maps API Key
The setup takes about 5 minutes and includes:
- Creating a Google Cloud account (free)
- Enabling the Geocoding API
- Generating your API key
- Setting up billing (Google provides $200/month in free credits — approximately 40,000 requests)
Once you have your API key, enter it on the tool setup page. Your key is encrypted and stored securely — we never see or use it ourselves.
Quick Start Guide
Enter Your Address Pairs
Choose Your Unit
Click Calculate
Review and Export
Understanding Your Results
Free Trial vs Paid Features
| Feature | Trial | Paid Subscriber |
|---|---|---|
| Address pairs per batch | 10 | Unlimited |
| Calculations per day | 5 | Unlimited |
| CSV Export | No | Yes |
| Saved History | No | Yes |
| File Import (CSV/Excel) | No | Yes |
Ready to Start?
Next Steps
- How to Calculate Straight-Line Distances — Detailed tutorial with input formats and tips
- Understanding Straight-Line vs Driving Distance — When to use each type
- Saving and Exporting Results — CSV export and history features
- FAQ — Common questions answered