{"id":1877,"date":"2015-07-23T15:57:58","date_gmt":"2015-07-23T14:57:58","guid":{"rendered":"http:\/\/denbeke.be\/blog\/?p=1877"},"modified":"2015-07-23T15:57:58","modified_gmt":"2015-07-23T14:57:58","slug":"iphoneipad-altitude-app-written-in-swift","status":"publish","type":"post","link":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/","title":{"rendered":"iPhone\/iPad altitude app (written in Swift)"},"content":{"rendered":"<p>When passing holidays in the mountains one often wants to know the altitude. Well&#8230; what&#8217;s better than writing an altitude app yourself? That&#8217;s what I&#8217;ve done:<\/p>\n<figure id=\"attachment_1878\" aria-describedby=\"caption-attachment-1878\" style=\"width: 344px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/attachment\/altitude-app-for-iphone\/\" rel=\"attachment wp-att-1878\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1878\" src=\"http:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone-543x1024.png\" alt=\"Altitude app for iPhone\" width=\"344\" height=\"649\" srcset=\"https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone-543x1024.png 543w, https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone-159x300.png 159w, https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone.png 645w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/a><figcaption id=\"caption-attachment-1878\" class=\"wp-caption-text\">Screenshot of altitude app<\/figcaption><\/figure>\n<p>It took me no more than 2 hours to complete the job and to come up with the above application. The source code is freely available on Github: <a href=\"https:\/\/github.com\/DenBeke\/Altitude\" target=\"_blank\">Altitude<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When passing holidays in the mountains one often wants to know the altitude. Well&#8230; what&#8217;s better than writing an altitude app yourself? That&#8217;s what I&#8217;ve done: It took me no more than 2 hours to complete the job and to come up with the above application. The source code is freely available on Github: Altitude.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235],"tags":[124,129,119,126,257,258],"class_list":["post-1877","post","type-post","status-publish","format-standard","hentry","category-programming","tag-apple-2","tag-ios","tag-ipad","tag-iphone","tag-swift","tag-xcode","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iPhone\/iPad altitude app (written in Swift) &#8211; DenBeke<\/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:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iPhone\/iPad altitude app (written in Swift) &#8211; DenBeke\" \/>\n<meta property=\"og:description\" content=\"When passing holidays in the mountains one often wants to know the altitude. Well&#8230; what&#8217;s better than writing an altitude app yourself? That&#8217;s what I&#8217;ve done: It took me no more than 2 hours to complete the job and to come up with the above application. The source code is freely available on Github: Altitude.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/\" \/>\n<meta property=\"og:site_name\" content=\"DenBeke\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-23T14:57:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone.png\" \/>\n\t<meta property=\"og:image:width\" content=\"645\" \/>\n\t<meta property=\"og:image:height\" content=\"1216\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mathias Beke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MthsBk\" \/>\n<meta name=\"twitter:site\" content=\"@MthsBk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mathias Beke\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/\"},\"author\":{\"name\":\"Mathias Beke\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#\\\/schema\\\/person\\\/386878f712fe3fe22227216f087772dc\"},\"headline\":\"iPhone\\\/iPad altitude app (written in Swift)\",\"datePublished\":\"2015-07-23T14:57:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/\"},\"wordCount\":75,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/denbeke.be\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Altitude-app-for-iPhone-543x1024.png\",\"keywords\":[\"apple\",\"ios\",\"iPad\",\"iphone\",\"swift\",\"xcode\"],\"articleSection\":[\"programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/\",\"url\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/\",\"name\":\"iPhone\\\/iPad altitude app (written in Swift) &#8211; DenBeke\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/denbeke.be\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Altitude-app-for-iPhone-543x1024.png\",\"datePublished\":\"2015-07-23T14:57:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#\\\/schema\\\/person\\\/386878f712fe3fe22227216f087772dc\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#primaryimage\",\"url\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Altitude-app-for-iPhone.png\",\"contentUrl\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/Altitude-app-for-iPhone.png\",\"width\":645,\"height\":1216},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/programming\\\/iphoneipad-altitude-app-written-in-swift\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iPhone\\\/iPad altitude app (written in Swift)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/\",\"name\":\"DenBeke\",\"description\":\"Mathias Beke\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/denbeke.be\\\/blog\\\/#\\\/schema\\\/person\\\/386878f712fe3fe22227216f087772dc\",\"name\":\"Mathias Beke\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g\",\"caption\":\"Mathias Beke\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iPhone\/iPad altitude app (written in Swift) &#8211; DenBeke","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:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/","og_locale":"en_US","og_type":"article","og_title":"iPhone\/iPad altitude app (written in Swift) &#8211; DenBeke","og_description":"When passing holidays in the mountains one often wants to know the altitude. Well&#8230; what&#8217;s better than writing an altitude app yourself? That&#8217;s what I&#8217;ve done: It took me no more than 2 hours to complete the job and to come up with the above application. The source code is freely available on Github: Altitude.","og_url":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/","og_site_name":"DenBeke","article_published_time":"2015-07-23T14:57:58+00:00","og_image":[{"width":645,"height":1216,"url":"https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone.png","type":"image\/png"}],"author":"Mathias Beke","twitter_card":"summary_large_image","twitter_creator":"@MthsBk","twitter_site":"@MthsBk","twitter_misc":{"Written by":"Mathias Beke"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#article","isPartOf":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/"},"author":{"name":"Mathias Beke","@id":"https:\/\/denbeke.be\/blog\/#\/schema\/person\/386878f712fe3fe22227216f087772dc"},"headline":"iPhone\/iPad altitude app (written in Swift)","datePublished":"2015-07-23T14:57:58+00:00","mainEntityOfPage":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/"},"wordCount":75,"commentCount":0,"image":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#primaryimage"},"thumbnailUrl":"http:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone-543x1024.png","keywords":["apple","ios","iPad","iphone","swift","xcode"],"articleSection":["programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/","url":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/","name":"iPhone\/iPad altitude app (written in Swift) &#8211; DenBeke","isPartOf":{"@id":"https:\/\/denbeke.be\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#primaryimage"},"image":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#primaryimage"},"thumbnailUrl":"http:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone-543x1024.png","datePublished":"2015-07-23T14:57:58+00:00","author":{"@id":"https:\/\/denbeke.be\/blog\/#\/schema\/person\/386878f712fe3fe22227216f087772dc"},"breadcrumb":{"@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#primaryimage","url":"https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone.png","contentUrl":"https:\/\/denbeke.be\/blog\/wp-content\/uploads\/2015\/07\/Altitude-app-for-iPhone.png","width":645,"height":1216},{"@type":"BreadcrumbList","@id":"https:\/\/denbeke.be\/blog\/programming\/iphoneipad-altitude-app-written-in-swift\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/denbeke.be\/blog\/"},{"@type":"ListItem","position":2,"name":"iPhone\/iPad altitude app (written in Swift)"}]},{"@type":"WebSite","@id":"https:\/\/denbeke.be\/blog\/#website","url":"https:\/\/denbeke.be\/blog\/","name":"DenBeke","description":"Mathias Beke","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/denbeke.be\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/denbeke.be\/blog\/#\/schema\/person\/386878f712fe3fe22227216f087772dc","name":"Mathias Beke","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8889cf00cef9570a8f82e7510ed97205ccb7a1a0d2c7e0968a07e1885386f198?s=96&d=mm&r=g","caption":"Mathias Beke"}}]}},"_links":{"self":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/posts\/1877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/comments?post=1877"}],"version-history":[{"count":3,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/posts\/1877\/revisions"}],"predecessor-version":[{"id":1882,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/posts\/1877\/revisions\/1882"}],"wp:attachment":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/media?parent=1877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/categories?post=1877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/tags?post=1877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}