Coordinate Converter UTM MGRS Plus Codes DMS Haversine API
Free tier included · LocationCoordinate Format Converter is a high-performance, stateless geographic toolkit designed to handle all your spatial conversion and calculation needs in a single API. Built to match and exceed the capabilities of market-leading alternatives while remaining significantly more affordable, this service eliminates the headache of managing heavy GIS libraries, version pinning, and spatial math dependencies in your backend stack.
Whether you are building mapping tools, field-service apps, logistics trackers, or IoT platforms, this API covers critical use cases seamlessly: 1. **Multi-Format Conversions:** Instantly translate latitude and longitude between Decimal Degrees (DD), Degrees-Minutes-Seconds (DMS), Universal Transverse Mercator (UTM), Military Grid Reference System (MGRS), Open Location Code (Plus Code), and Maidenhead locators (with customizable precision). 2. **Batch Processing:** Optimize your ETL pipelines and data migration scripts by converting up to 100 coordinate pairs to UTM and DMS formats in a single HTTP request (`POST /batch`). 3. **Spatial Analysis & Routing:** Compute precise great-circle distances in kilometers and initial bearings between any two points using the Haversine formula (`GET /distance`). 4. **Dirty Data Parsing:** Clean up messy user inputs, OCR errors, or legacy exports by feeding raw, unstructured coordinate strings (like `40°26'46"N` or decimal commas) into the intelligent parser (`GET /validate`).
The service operates with clean, predictable contracts and fast execution times. Honest limits: UTM latitudes are restricted to -80°..84° due to Transverse Mercator mathematical limits; standard decimal coordinates accept full -90..90 and -180..180 ranges. MGRS conversions require the native library environment, falling back to a 501 stub if unavailable. No storage, databases, or logging are used, ensuring full privacy for your location data.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | Root |
GET | /health | Health |
GET | /dms | Dms |
GET | /dd | Dd |
GET | /utm | Utm Conv |
GET | /from-utm | From Utm |
GET | /plus-code | Plus Code |
GET | /mgrs | Mgrs Conv |
GET | /maidenhead | Maidenhead |
GET | /from-maidenhead | From Maidenhead |
GET | /distance | Calculate distance and bearing |
POST | /batch | Batch convert coordinates |
GET | /validate | Validate and parse dirty coordinate string |
Quick start
curl -X GET "https://coordconv.p.rapidapi.com/dms?lat=51.5074&lon=-0.1278" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: coordconv.p.rapidapi.com"
FAQ
Are my location queries logged or stored?
No. The API is completely stateless and performs pure mathematical transformations. No request logs or spatial data are stored on our servers.
What are the limits for UTM coordinate conversions?
UTM latitude values are strictly limited to the -80° to 84° range due to the standard mathematical definition of the Transverse Mercator projection. Polar regions outside this range should use other formats like UPS or geographic degrees.
Can I process multiple points in a single request?
Yes! Use the `POST /batch` endpoint to submit up to 100 coordinate pairs per request for simultaneous UTM and DMS conversion.
What happens if the MGRS library is unavailable?
In environments where the native MGRS C library cannot be loaded, the `/mgrs` endpoint will gracefully return a 501 status code stub. All other format converters remain fully operational.
Try Coordinate Converter UTM MGRS Plus Codes DMS Haversine free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI