forked from organicmaps/organicmaps
[ios] Implementation place page for API poi.
This commit is contained in:
parent
5c84f15bdb
commit
b7b9e659c9
1 changed files with 7 additions and 1 deletions
|
@ -130,7 +130,13 @@ using feature::Metadata;
|
|||
|
||||
- (void)configureForApi:(ApiMarkPoint const *)apiMark
|
||||
{
|
||||
// TODO(Vlad): Should implement this method.
|
||||
Framework & f = GetFramework();
|
||||
m2::PointD const & point = apiMark->GetOrg();
|
||||
Metadata metadata;
|
||||
search::AddressInfo info;
|
||||
f.FindClosestPOIMetadata(point, metadata);
|
||||
f.GetAddressInfoForGlobalPoint(point, info);
|
||||
[self configureEntityWithMetadata:metadata addressInfo:info];
|
||||
}
|
||||
|
||||
- (void)configureEntityWithMetadata:(Metadata const &)metadata addressInfo:(search::AddressInfo const &)info
|
||||
|
|
Loading…
Add table
Reference in a new issue