(latlng, precision)
| 9162 | // Reverse of [`coordsToLatLng`](#geojson-coordstolatlng) |
| 9163 | // Coordinates values are rounded with [`formatNum`](#util-formatnum) function. |
| 9164 | function latLngToCoords(latlng, precision) { |
| 9165 | latlng = toLatLng(latlng); |
| 9166 | return latlng.alt !== undefined ? |
| 9167 | [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision), formatNum(latlng.alt, precision)] : |
| 9168 | [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision)]; |
| 9169 | } |
| 9170 | |
| 9171 | // @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean, precision?: Number|false): Array |
| 9172 | // Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs) |
no test coverage detected