Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
27 lines
710 B
Objective-C
27 lines
710 B
Objective-C
#import <Foundation/Foundation.h>
|
||
#import <CoreLocation/CoreLocation.h>
|
||
|
||
#import "MLNFoundation.h"
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
/**
|
||
`MLNDistanceFormatter` implements a formatter object meant to be used for
|
||
geographic distances. The user’s current locale will be used by default
|
||
but it can be overriden by changing the locale property of the numberFormatter.
|
||
*/
|
||
MLN_EXPORT
|
||
@interface MLNDistanceFormatter : NSLengthFormatter
|
||
|
||
/**
|
||
Returns a localized formatted string for the provided distance.
|
||
|
||
@param distance The distance, measured in meters.
|
||
@return A localized formatted distance string including units.
|
||
*/
|
||
- (NSString *)stringFromDistance:(CLLocationDistance)distance;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|