狠狠撸

狠狠撸Share a Scribd company logo
GPSロガー作成で得た
Tips
KyasuSoft
自己紹介

?

安原?啓悦(ヤスハラ?ケイエツ)

?

Twitter @kyasusoft
バックグラウンドでの
ロケーション取得の継続
?

バックグラウンドでのロケーション取得

?

Info.plist
Required background modes :
App registers for location updates
SWWDC GPSロガー作成で得たtips
?

ロケーション取得開始
[locationManager startUpdateLocation]

?

これだけだと、約20分動きがないと休止モードに入
る。動き出すと再開するはずなのですが、実際やって
みると再開しないっぽい!

?

そこで、プロパティを設定。

locationManager.pausesLocationUpdatesAuto
matically = NO;
位置情報って結構飛ぶんです
?

CLLocationのDelegeteで位置情報が取得でき
ますが、た~まに100mとかポンと飛んだデー
タが得られます。

?

そのまま使うと、変な位置に居ることになった
り、距離が大幅に狂ったりします。
SWWDC GPSロガー作成で得たtips
?

そこで、対策として

?

前回の取得位置から100m離れていたら無効
データとして捨てることにしました。

?

大体1秒毎にDelegateが呼ばれるので時速
360kmで走るといつまでも捨て続けることにな
りますが...
アプリが喋る時に
BGMの音量を下げる
?

「ミュージック」アプリで音楽をかけながらアプ
リで一定距離、時間のタイミングで喋らせた。

?

Info.plist
Required background modes :
App plays audio or streams audio/video
using AirPlay
// バックグラウンドでの再生の準備
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryPlayback error:nil];
UInt32 p = 1;
// 他の音も出す
AudioSessionSetProperty
(kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof(p), &p);
p = 1;
// 他の音を下げる
AudioSessionSetProperty
(kAudioSessionProperty_OtherMixableAudioShouldDuck, sizeof(p), &p);
MKMapView
?

拡大時に建物を表示(iOS 7 only)
?

?

_map.showsBuildings = YES;

ランドマークを表示(iOS 7 only)
?

_map.showsPointsOfInterest = YES;
SWWDC GPSロガー作成で得たtips

More Related Content

Recently uploaded (11)

顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
Matsushita Laboratory
?
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
Matsushita Laboratory
?
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
shomayama0221
?
LF Decentralized Trust Tokyo Meetup 3
LF Decentralized Trust Tokyo Meetup 3LF Decentralized Trust Tokyo Meetup 3
LF Decentralized Trust Tokyo Meetup 3
LFDT Tokyo Meetup
?
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
CRI Japan, Inc.
?
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
Matsushita Laboratory
?
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
Matsushita Laboratory
?
What the end of support of Windows 10 will mean?
What the end of support of Windows 10 will mean?What the end of support of Windows 10 will mean?
What the end of support of Windows 10 will mean?
Atomu Hidaka
?
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
Matsushita Laboratory
?
LoRa/LoRaWAN HMIタッチスクリーン LTS5 A4サイズ両面カタログ
LoRa/LoRaWAN HMIタッチスクリーン LTS5  A4サイズ両面カタログLoRa/LoRaWAN HMIタッチスクリーン LTS5  A4サイズ両面カタログ
LoRa/LoRaWAN HMIタッチスクリーン LTS5 A4サイズ両面カタログ
CRI Japan, Inc.
?
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
Matsushita Laboratory
?
顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
顿贰滨惭2025冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援冲厂丑颈苍办补飞补.辫诲蹿
Matsushita Laboratory
?
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
顿贰滨惭2025冲厂丑颈苍办补飞补冲尝尝惭を利用した果树农家の経験知の対话的蓄积支援.辫诲蹿
Matsushita Laboratory
?
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
自宅でも出来る!!VCF構築-概要編-JapanVMUG Spring Meeting with NEC
shomayama0221
?
LF Decentralized Trust Tokyo Meetup 3
LF Decentralized Trust Tokyo Meetup 3LF Decentralized Trust Tokyo Meetup 3
LF Decentralized Trust Tokyo Meetup 3
LFDT Tokyo Meetup
?
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
LoRaWANプッシュボタン PB05-L カタログ A4サイズ Draginoカタログ両面
CRI Japan, Inc.
?
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
田中瑠彗,东冈秀树,松下光范「手技疗法指导における动作指示の违いが指圧动作に及ぼす影响」
Matsushita Laboratory
?
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
井上梨々花,畑玲音,松下光范「ニュースに対するコメントの属性提示が意见形成に与える影响の调査」
Matsushita Laboratory
?
What the end of support of Windows 10 will mean?
What the end of support of Windows 10 will mean?What the end of support of Windows 10 will mean?
What the end of support of Windows 10 will mean?
Atomu Hidaka
?
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
岩本 駿平, 松下 光範, 堀 寛史, 杉本 明文「けが予防を目的とした跳躍動作の継続的計測による運動特性の評価」発表資料
Matsushita Laboratory
?
LoRa/LoRaWAN HMIタッチスクリーン LTS5 A4サイズ両面カタログ
LoRa/LoRaWAN HMIタッチスクリーン LTS5  A4サイズ両面カタログLoRa/LoRaWAN HMIタッチスクリーン LTS5  A4サイズ両面カタログ
LoRa/LoRaWAN HMIタッチスクリーン LTS5 A4サイズ両面カタログ
CRI Japan, Inc.
?
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
茂木奈々瀬,畑玲音,安尾萌,松下光范「尝尝惭による生成コメントがもたらすニュースの印象変化分析」発表资料
Matsushita Laboratory
?

Featured (20)

2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?

SWWDC GPSロガー作成で得たtips