TTPlaceById
Objective-C
@interface TTPlaceById
Swift
class TTPlaceById
Public Preview
This is under Public Preview and subject to change by the end of 2020.12.
More information is available at: https://developer.tomtom.com/public-preview
TomTom placebyid API main object. Contains methods to use Tomtom’s online placebyid engine and provides support for both async and sync calls.
-
Initializer with key for the TomTom Search API Service.
Declaration
Objective-C
- (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;
Swift
init(key: String)
-
Delegate that informs the subscriber when a placebyid result is available. It contains a TTPlaceByIdResponse object.
Declaration
Objective-C
@property (nonatomic, weak) id<TTPlaceByIdDelegate> _Nullable delegate;
Swift
weak var delegate: TTPlaceByIdDelegate? { get set }
-
TTPlaceByIdQuery with async callback
Declaration
Objective-C
- (void)placebyidWithQuery:(TTPlaceByIdQuery *_Nonnull)query;
Swift
func placebyid(with query: TTPlaceByIdQuery)
Parameters
query
Object containing the data needed to perform a placebyid.
-
TTPlaceByIdQuery with async block
Declaration
Objective-C
- (void)placebyidWithQuery:(TTPlaceByIdQuery *_Nonnull)query completionHandler: (void (^_Nonnull)(TTPlaceByIdResponse *_Nullable, TTResponseError *_Nullable))completionHandler;
Swift
func placebyid(with query: TTPlaceByIdQuery, completionHandler: @escaping (TTPlaceByIdResponse?, TTResponseError?) -> Void)
Parameters
query
Object containing the data needed to perform a placebyid.
completionHandler
CompletionHandler that informs the subscriber when a placebyid response is available. It contains a TTPlaceByIdResponse object.