TTPlaceById
@interface TTPlaceById
TomTom placebyid API main object. Contains methods to use Tomtom’s online placebyid engine and provides support for both async and sync calls.
-
Delegate that informs the subscriber when a placebyid result is available. It contains a TTPlaceByIdResponse object.
Declaration
Objective-C
@property (nonatomic, weak, readwrite) 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.