iOS8から追加された新しい機能 CLVisitとCMPedometer さて、久々の更新です。 今更ですが、CLVisitとCMPedometerについて調べてみました。 CLVisitはiOS8以降、CMPedometerはiOS8以降かつM8 モーションコプロセッサを搭載したiPhone6 or iPhone6 Plusでのみ利用可能です。 iOS8はともかく、まだまだ、iPhone6 or iPhone6 Plusは普及しているとは言い難いことでしょう。 実質的に多いのはiPhone5かもしれません…。 しかし、ここはエンジニアとして、1〜2年後を見て、アプリを開発すべきでしょう。 ということで早速、見て行きましょう。 CLVisitで滞在時間を検知 まずは、CLVisitから見ていきます。 CLVisitは特定の場所の滞在時間を取得できるクラスです。 最近、Swiftでソースを書
CLFloor と CLVisit iOS 8 から、Core Location で CLFloor と CLVisit が利用できるようになりました。本記事ではこの2つの機能の使いかたを解説したいと思います。 CLFloor CLFloor は階情報のクラスです。現在地の建物の何階に居るかという情報を取ることができます。なお M8 モーションコプロセッサ搭載デバイス (iPhone 6 / iPhone 6 Plus) で利用できます。 func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) { println("\(locations)") // 初めに取得できた位置情報のフロアを取得する let location: CLLocation? = locat
Information about the user’s location during a specific period of time.
Send feedback Time Zone API overview Stay organized with collections Save and categorize content based on your preferences. The Time Zone API is a service that accepts an HTTP request of latitude/longitude coordinates and a desired date and time. It returns the time zone data for the location, including offsets for UTC and daylight savings time. Why use the Time Zone API With the Time Zone API, yo
UIImagePickerControllerで撮影した写真にExif・位置情報を保存したい iOSアプリで静止画の撮影を実装する際には、UIImagePickerControllerを利用するのが一番手軽です。しかし、UIImagePickerControllerで撮影した写真をUIImageJPEGRepresentation関数でjpegに変換して保存するだけではExif・位置情報が保存されません。iOS標準のカメラアプリで撮影した写真にはExif・位置情報が保存されているので、同じように保存したい場合もあると思います。そういった場合は静止画の保存時に情報を書き込む必要があります。 静止画のメタデータ UIImagePickerControllerでの静止画撮影後、UIImagePickerControllerDelegateプロトコルのimagePickerController:d
(WWDC 2014 発表資料より引用) つまりどういうこと? iOS 8 から位置情報の取得方法が変わるようです。今までの方法だと位置情報が取れなくなります。(すでにAppStoreに並んでいるアプリについてはこの限りではありません) iOS 8 : Location Services not working My app that worked fine in iOS 7 doesn't work with the iOS 8 SDK. CLLocationManager doesn't return a location, and I don't see my app under >Settings > Location Services either. I did a Google search on the issue but nothing >came up, what cou
FrogApps 技術ブログ始めました! RailsやiOS、HTML5の情報を発信中!! → http://qiita.com/teams/frogapps ここ数年、位置情報を使ったアプリ・サービスが増えましたが、GPSから取得出来る緯度経度だけではデータとして使いにくい事があります。 GoogleのGeocodingサービスなどで、緯度経度から住所への変換ができますが、件数や速度の問題があります。 そこで、国土交通省のデータを元に、緯度経度から住所への変換を行ってみましょう。 国土数値情報ダウンロードサービス http://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03.html から全都道府県を選択。最新の情報を全都道府県分選択します。 PostGISのセットアップ http://trac.osgeo.org/postgis/wiki/
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く