<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koogawa</author_name>
  <author_url>https://blog.hatena.ne.jp/koogawa/</author_url>
  <blog_title>koogawa blog</blog_title>
  <blog_url>https://koogawa.hateblo.jp/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
    <anon>Tips</anon>
    <anon>位置情報</anon>
  </categories>
  <description>数年前に書いたこちらの記事が古くなってきたので、Swift編 として書き直しました。 blog.koogawa.com 磁力センサーを利用し、iPhoneの向きを計測する方法を解説します。 「磁北」と「真北」について 単純に「北」と言っても、「磁北（じほく）」と「真北（しんぽく）」の二種類が存在します（2つの違いについては「真北とは？ | 用語集とGISの使い方 | 株式会社パスコ」で丁寧に解説されています）。 ここでは磁北を取得する方法について解説します。 実行環境 Xcode 7.3 Swift 2.2 実装方法 まずは「CoreLocation.framework」を追加します。 次に …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoogawa.hateblo.jp%2Fentry%2F2016%2F04%2F02%2F102631&quot; title=&quot;【Tips】iOSで電子コンパスを使う（Swift編） - koogawa blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/k/koogawa/20160402/20160402095838.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-02 10:26:31</published>
  <title>【Tips】iOSで電子コンパスを使う（Swift編）</title>
  <type>rich</type>
  <url>https://koogawa.hateblo.jp/entry/2016/04/02/102631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
