---
title: "string(fromDistance:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkdistanceformatter/string(fromdistance:)"
---

# string(fromDistance:)

Creates a string representation of the specified distance.

## Declaration

```swift
func string(fromDistance distance: CLLocationDistance) -> String
```

## Parameters

- `distance`: The distance value that you want to convert to a string.

## Return Value

Return Value A user-readable string that describes the distance based on the formatter settings.

## See Also

### Converting distances

- [distance(from:)](mapkit/mkdistanceformatter/distance(from:).md)
