coord_convert
Convert any coordinate notation to all common formats at once: decimal degrees, DMS, USNG/MGRS, UTM, geohash, H3, Plus Code, quadkey, GeoJSON. Input format auto-detected.
Instructions
Convert a position between every common coordinate notation at once.
Detects the input format automatically and returns decimal degrees, DMS, USNG/MGRS, UTM, geohash, H3, Plus Code, quadkey and GeoJSON together, so one call answers any "what is this in X?" question.
Use this for format conversion. For a different datum or projection (British National Grid, State Plane, Web Mercator) use coord_transform_crs. To check whether a string is a valid coordinate without converting it, use coord_describe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | A position in any supported notation: decimal degrees '48.8584,2.2945'; DMS '48°51'30"N 2°17'40"E'; USNG/MGRS '31UDQ4825211954'; geohash 'u09tunquc'; H3 '891fb46741bffff'; Plus Code '8FW4V75V+9R6'; or a place name to geocode. | |
| tile_zoom | No | Web-map zoom for the quadkey. | |
| grid_digits | No | Digits in the USNG/MGRS reference: 10 gives 1 m, 8 gives 10 m, 4 gives 1 km. | |
| h3_resolution | No | H3 resolution. | |
| geohash_length | No | Geohash characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| input | Yes | ||
| formats | Yes | ||
| detected_format | Yes | ||
| input_precision_m | No |