{"id":1898,"date":"2014-02-12T17:02:54","date_gmt":"2014-02-12T13:02:54","guid":{"rendered":"https:\/\/blog.alwawee.ru\/?p=1898"},"modified":"2014-07-28T22:35:34","modified_gmt":"2014-07-28T18:35:34","slug":"using-yandex-maps-api-core-location-in-ios-to-determine-city-of-a-user-by-reverse-geocoding","status":"publish","type":"post","link":"https:\/\/blog.alwawee.ru\/?p=1898","title":{"rendered":"Using Yandex Maps API &#038; Core Location In iOS To Determine City Of a User By Reverse Geocoding"},"content":{"rendered":"<p>My goal was to determine the city or town name of a user to fill a region text field automatically in iOS app. At first I tried to use Core Location and MapKit, but I got only city names in English, for example, &#8216;Ufa&#8217;. \u00a0I had to get city names in Russian, so I decided to use Yandex Maps API. This is a final result &#8211; interface with a button to get city name automatically in Russian and a textField with a city name:<\/p>\n<p><a href=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/02\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-2014-02-12-\u0432-17.03.24.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1905\" title=\"\u0421\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 2014-02-12 \u0432 17.03.24\" src=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/02\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-2014-02-12-\u0432-17.03.24.png\" alt=\"\" width=\"318\" height=\"47\" srcset=\"https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/02\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-2014-02-12-\u0432-17.03.24.png 318w, https:\/\/blog.alwawee.ru\/wp-content\/uploads\/2014\/02\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-2014-02-12-\u0432-17.03.24-300x44.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/a><\/p>\n<p>First, we add CLLocationManagerDelegate interface and an instance variable of CLLocationManager to get coordinates to our View Controller:<\/p>\n<pre>@interface MyViewController : UIViewController <CLLocationManagerDelegate>\r\n{\r\n  CLLocationManager *_locationManager;\r\n}\r\n\r\n@end<\/pre>\n<p>I created in my ViewController two helper methods to show and hide spinner without writing implementation of it:<\/p>\n<pre>- (void)showSpinner\r\n{\r\n  self.hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];\r\n}\r\n\r\n- (void)hideSpinner\r\n{\r\n  [self.hud hide:YES];\r\n}<\/pre>\n<p>I have a button on my ViewController. When it&#8217;s clicked a TextField is filled by a city name automatically after it is determined.<\/p>\n<pre>#pragma mark - Location determination\r\n\r\n\/\/ Button click handler\r\n- (void)determineRegionClicked:(id)sender\r\n{\r\n  [self showSpinner];\r\n\r\n  \/\/ We create CLLocationManager and start  updating location\r\n  _locationManager = [[CLLocationManager alloc] init];\r\n  _locationManager.delegate = self;\r\n  _locationManager.distanceFilter = kCLDistanceFilterNone;\r\n  _locationManager.desiredAccuracy = kCLLocationAccuracyBest;\r\n  [_locationManager startUpdatingLocation];\r\n}<\/pre>\n<p>Here we tell, that our ViewController is a delegate of CLLocationManager.<\/p>\n<p>This is a delegate method, that does all the remaining work. It is called after coordinates are determined. I used SBJson framework to parse JSON.<\/p>\n<pre>#import \r\n\r\n...\r\n\r\n#define YANDEX_MAPS_API_DOMAIN @\"http:\/\/geocode-maps.yandex.ru\/1.x\/\"\r\n\r\n...\r\n\r\n- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation\r\n{\r\n  \/\/ Switching off location updates\r\n  [_locationManager stopUpdatingLocation];\r\n\r\n  \/\/ Reverse geocoding using Yandex Maps API\r\n  CLLocationCoordinate2D coordinate = newLocation.coordinate;\r\n  NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", coordinate.longitude, coordinate.latitude];\r\n\r\n  \/\/ Creating HTTP request. Here kind=locality means that we will be searching for a city.\r\n  NSString *urlString = [NSString stringWithFormat:@\"%@?geocode=%@&results=1&lang=ru-RU&format=json&kind=locality\", YANDEX_MAPS_API_DOMAIN, coordinatesString];\r\n  NSURL *url = [NSURL URLWithString:urlString];\r\n  NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];\r\n\r\n  \/\/ Sending synchronous request in background queue using dispatch queues\r\n  dispatch_queue_t backgroundQueue = dispatch_queue_create(\"bgQueue\", nil);\r\n  dispatch_async(backgroundQueue, ^{\r\n    __autoreleasing NSHTTPURLResponse *urlResponse = nil;\r\n    __autoreleasing NSError *error = nil;\r\n    NSData *resultData = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&urlResponse error:&error];\r\n\r\n    \/\/ Parsing a result\r\n    if (! error) {\r\n      NSLog(@\"Status Code: %d %@\", [urlResponse statusCode], [NSHTTPURLResponse localizedStringForStatusCode:[urlResponse statusCode]]);\r\n\r\n      NSString *resultString = [[NSString alloc] initWithData:resultData encoding:NSUTF8StringEncoding];\r\n      \/\/ NSLog(@\"resultString:%@\", resultString);\r\n\r\n      SBJsonParser *jsonParser = [[SBJsonParser alloc] init];\r\n      NSDictionary *jsonObject = [jsonParser objectWithString:resultString];\r\n\r\n      \/\/ If count is zero, then region is not found\r\n      int count = [jsonObject[@\"response\"][@\"GeoObjectCollection\"][@\"metaDataProperty\"][@\"GeocoderResponseMetaData\"][@\"found\"] integerValue];\r\n      if (count == 0) {\r\n        dispatch_async(dispatch_get_main_queue(), ^{\r\n          [self showRegionNotFoundError];\r\n        });\r\n        return;\r\n      }\r\n\r\n      \/\/ Searching in a JSON\r\n      NSString *city = [jsonObject[@\"response\"][@\"GeoObjectCollection\"][@\"featureMember\"] firstObject][@\"GeoObject\"][@\"name\"];\r\n      NSLog(@\"Yandex API City returned: %@\", city);\r\n\r\n      dispatch_async(dispatch_get_main_queue(), ^{\r\n        \/\/ Here I have a code that updates my UI after city is determined\r\n      });\r\n\r\n    }\r\n    else {\r\n      \/\/ If failed to get data from Yandex API\r\n      NSLog(@\"An error occured, Status Code: %i\", urlResponse.statusCode);\r\n      NSLog(@\"Description: %@\", [error localizedDescription]);\r\n      NSLog(@\"Response Body: %@\", [[NSString alloc] initWithData:resultData encoding:NSUTF8StringEncoding]);\r\n\r\n      dispatch_async(dispatch_get_main_queue(), ^{\r\n        [self showRegionNotFoundError];\r\n      });\r\n    }\r\n\r\n    dispatch_async(dispatch_get_main_queue(), ^{\r\n      [self hideSpinner];\r\n    });\r\n\r\n  });\r\n}\r\n<\/pre>\n<p>This is an error handling for Core Location:<\/p>\n<pre>- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error\r\n{\r\n  [_locationManager stopUpdatingLocation];\r\n\r\n  [self showRegionNotFoundError];\r\n}<\/pre>\n<p>This method shows an error if we failed to determine city automatically:<\/p>\n<pre class=\"crayon-selected\">- (void)showRegionNotFoundError\r\n{\r\n  [self hideSpinner];\r\n\r\n  UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@\"Error\" message:@\"Failed to determine your city automatically, please, select the one from a list.\" delegate:nil cancelButtonTitle:@\"OK\" otherButtonTitles:nil];\r\n  [alertView show];\r\n}<\/pre>\n<p>The same goal can be achieved using MapKit instead of Yandex Maps API for English city names: <\/p>\n<pre>\r\n#import <MapKit\/MapKit.h>\r\n#import <CoreLocation\/CoreLocation.h>\r\n#import <AddressBook\/AddressBook.h>\r\n\r\n... \r\n\r\n- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {\r\n\r\n... \r\n\r\n  CLGeocoder *geocoder = [[CLGeocoder alloc] init] ;\r\n  \r\n  [geocoder reverseGeocodeLocation:newLocation completionHandler:^(NSArray *placemarks, NSError *error) {\r\n    \r\n    [self hideSpinner];\r\n    \r\n    if (! error )\r\n    {\r\n      CLPlacemark *placemark = [placemarks objectAtIndex:0];\r\n      NSString *city = [[placemark addressDictionary] objectForKey:(NSString *)kABPersonAddressCityKey];\r\n      NSLog(@\"determinedRegion: %@\", city);\r\n    \r\n      NSLog(@\"Full placemark address dictionary: %@\", placemark.addressDictionary);\r\n    }\r\n    else\r\n    {\r\n      [self showRegionNotFoundError];\r\n      \r\n      NSLog(@\"Geocode failed with error %@\", error);\r\n      NSLog(@\"\\nCurrent Location Not Detected\\n\");\r\n    }\r\n  }];\r\n<\/pre>\n<p>Finally, some test locations. Replace the appropriate string to simulate another coordinates. This could be done in Simulator settings also in Debug\/Geo section.<\/p>\n<pre>\r\n  \/\/ Test for Novgorod\r\n  \/\/ NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", 44.0000f, 56.3333f];\r\n\r\n  \/\/ Test for Ufa city\r\n  \/\/ NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", 55.9667f, 54.7500f];\r\n\r\n  \/\/ Test for a small town Meleuz in the Republic of Bashkortostan, Russia\r\n  \/\/ NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", 55.9333f, 52.9500f];\r\n\r\n  \/\/ Test for a random location on a map\r\n  \/\/ NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", 56.9333f, 53.9500f];\r\n\r\n  \/\/ Test for Moscow\r\n  \/\/ NSString *coordinatesString = [NSString stringWithFormat:@\"%lf,%lf\", 37.6167f, 55.7500f];\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My goal was to determine the city or town name of a user to fill a region text field automatically in iOS app. At first I tried to use Core Location and MapKit, but I got only city names in English, for example, &#8216;Ufa&#8217;. \u00a0I had to get city names in Russian, so I decided [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[54,53,51,52,50],"class_list":["post-1898","post","type-post","status-publish","format-standard","hentry","category-ios","tag-core-location","tag-ios-mapkit","tag-maps","tag-reverse-geocoding","tag-yandex-api"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Yandex Maps API &amp; Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.alwawee.ru\/?p=1898\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Yandex Maps API &amp; Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev\" \/>\n<meta property=\"og:description\" content=\"My goal was to determine the city or town name of a user to fill a region text field automatically in iOS app. At first I tried to use Core Location and MapKit, but I got only city names in English, for example, &#8216;Ufa&#8217;. \u00a0I had to get city names in Russian, so I decided [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.alwawee.ru\/?p=1898\" \/>\n<meta property=\"og:site_name\" content=\"Denis Kutlubaev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/alwaweemobile\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-12T13:02:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-07-28T18:35:34+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/blog.alwawee.com\/?attachment_id=1982\" \/>\n<meta name=\"author\" content=\"Denis Kutlubaev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Denis Kutlubaev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898\"},\"author\":{\"name\":\"Denis Kutlubaev\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"headline\":\"Using Yandex Maps API &#038; Core Location In iOS To Determine City Of a User By Reverse Geocoding\",\"datePublished\":\"2014-02-12T13:02:54+00:00\",\"dateModified\":\"2014-07-28T18:35:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898\"},\"wordCount\":258,\"commentCount\":0,\"keywords\":[\"Core Location\",\"iOS MapKit\",\"Maps\",\"Reverse Geocoding\",\"Yandex API\"],\"articleSection\":[\"iOS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898\",\"name\":\"Using Yandex Maps API & Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\"},\"datePublished\":\"2014-02-12T13:02:54+00:00\",\"dateModified\":\"2014-07-28T18:35:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1898#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.alwawee.ru\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Yandex Maps API &#038; Core Location In iOS To Determine City Of a User By Reverse Geocoding\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/\",\"name\":\"Denis Kutlubaev\",\"description\":\"iOS Development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.alwawee.ru\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\",\"name\":\"Denis Kutlubaev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"caption\":\"Denis Kutlubaev\"},\"description\":\"iOS Developer, creator of Tornado Browser and many other popular apps\",\"sameAs\":[\"http:\\\/\\\/dennis.alwawee.com\"],\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Yandex Maps API & Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.alwawee.ru\/?p=1898","og_locale":"en_US","og_type":"article","og_title":"Using Yandex Maps API & Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev","og_description":"My goal was to determine the city or town name of a user to fill a region text field automatically in iOS app. At first I tried to use Core Location and MapKit, but I got only city names in English, for example, &#8216;Ufa&#8217;. \u00a0I had to get city names in Russian, so I decided [&hellip;]","og_url":"https:\/\/blog.alwawee.ru\/?p=1898","og_site_name":"Denis Kutlubaev","article_publisher":"https:\/\/www.facebook.com\/alwaweemobile","article_published_time":"2014-02-12T13:02:54+00:00","article_modified_time":"2014-07-28T18:35:34+00:00","og_image":[{"url":"http:\/\/blog.alwawee.com\/?attachment_id=1982","type":"","width":"","height":""}],"author":"Denis Kutlubaev","twitter_misc":{"Written by":"Denis Kutlubaev","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.alwawee.ru\/?p=1898#article","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/?p=1898"},"author":{"name":"Denis Kutlubaev","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"headline":"Using Yandex Maps API &#038; Core Location In iOS To Determine City Of a User By Reverse Geocoding","datePublished":"2014-02-12T13:02:54+00:00","dateModified":"2014-07-28T18:35:34+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.alwawee.ru\/?p=1898"},"wordCount":258,"commentCount":0,"keywords":["Core Location","iOS MapKit","Maps","Reverse Geocoding","Yandex API"],"articleSection":["iOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.alwawee.ru\/?p=1898#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.alwawee.ru\/?p=1898","url":"https:\/\/blog.alwawee.ru\/?p=1898","name":"Using Yandex Maps API & Core Location In iOS To Determine City Of a User By Reverse Geocoding - Denis Kutlubaev","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/#website"},"datePublished":"2014-02-12T13:02:54+00:00","dateModified":"2014-07-28T18:35:34+00:00","author":{"@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"breadcrumb":{"@id":"https:\/\/blog.alwawee.ru\/?p=1898#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.alwawee.ru\/?p=1898"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.alwawee.ru\/?p=1898#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.alwawee.ru\/"},{"@type":"ListItem","position":2,"name":"Using Yandex Maps API &#038; Core Location In iOS To Determine City Of a User By Reverse Geocoding"}]},{"@type":"WebSite","@id":"https:\/\/blog.alwawee.ru\/#website","url":"https:\/\/blog.alwawee.ru\/","name":"Denis Kutlubaev","description":"iOS Development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.alwawee.ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7","name":"Denis Kutlubaev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","caption":"Denis Kutlubaev"},"description":"iOS Developer, creator of Tornado Browser and many other popular apps","sameAs":["http:\/\/dennis.alwawee.com"],"url":"https:\/\/blog.alwawee.ru\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/1898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1898"}],"version-history":[{"count":0,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/1898\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}