Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
スマホアプリ開発で位置情報をシミュレーションする
Search
Sosuke Okubo
February 10, 2017
Programming
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
スマホアプリ開発で位置情報をシミュレーションする
社内勉強会で発表した、位置情報をシミュレートして、アプリをデバッグする方法のまとめです。
Sosuke Okubo
February 10, 2017
Transcript
17 slides
スマホアプリ開発で位置情報 をシミュレーションする 株式会社エクストーン社内勉強会 2017/02/10 Sosuke Okubo
実はずっと気になってたのですが…
Q:これなんでここにあるんだろう…?
GPXとは
A:位置情報のシミュレーション(デバッグ) を行うため
iOSシミュレータ:特定地点のシミュレーション ・iOS Simulatorのメニューのdebug > Location ・Xcodeのdebug areaにあるSimulate Location
iOSシミュレータ:移動のシミュレーション ・XcodeのSimulate Location機能ではGPXファイルを扱える! ・手順 1. プロジェクトにGPXを追加 2. Simulate Locationで選択
Tips ・GPXでは、トラック、ウェイポイント、ルートなどを表現できますが、Xcodeが対応してい るのは、ウェイポイントのみ タグでいうとwpt ・移動速度の調整などはできないので、ウェイポイントを増減させて調節する感じになる かと
実機でも動きます!
Androidエミュレータ:特定地点のシミュレーション ・EmulatorのExtended controls > Location > GPS Data Point
Androidエミュレータ:移動のシミュレーション ・EmulatorのExtended controls > Location > GPS Data Playback
Tips ・Xcodeと違い、GPXのウェイポイントだけでなく、トラックにも対応していることを確認 ルートは未確認 ・移動速度の調整も可能 ・GPXだけでなくKMLも利用可能
KMLとは
実機では動きません!
Android実機:位置情報のシミュレーション ・位置偽装アプリを利用 ・と書くとあやしい感じだが、公式に認められた方法 アプリもGoogle Playで配布されている 手順 1. お好きな位置偽装アプリをダウンロード 2. 開発者メニューで許可
Android:位置偽装アプリの作り方 ・android.permission.ACCESS_MOCK_LOCATION ・LocationManager#setTestProviderLocation ・などそのへんだと思われますが、まだ調査中です…
おわり
More Decks by Sosuke Okubo
See All by Sosuke Okubo
“Build trust through better privacy”を見たメモ
mojage
0
120
IPによる地域制限の浅い話
mojage
0
34
Android Robo Test
mojage
0
81
Kotlin Multiplatform
mojage
0
59
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
130
Actions on Googleのアプリを作ってみた
mojage
0
140
SKStoreReviewController
mojage
0
490
Other Decks in Programming
See All in Programming
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
840
AppFunctionsの内部実装を紐解く
hiroaki404
1
120
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
SODA - FACT BOOK(EN)
sodainc
1
290
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.6k
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
350
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
340
The Cost of the DOM
ypresto
2
420
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.3k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Building Applications with DynamoDB
mza
96
7.3k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
820
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
How GitHub (no longer) Works
holman
316
150k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
560
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
エンジニアに許された特別な時間の終わり
watany
109
250k