Files
MapLibreParticleLab/platform/darwin/src/MLNDistanceFormatter.h

27 lines
711 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#import <CoreLocation/CoreLocation.h>
#import <Foundation/Foundation.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