Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
スマホアプリ開発で位置情報をシミュレーションする
Search
Sosuke Okubo
February 10, 2017
Programming
0
290
スマホアプリ開発で位置情報をシミュレーションする
社内勉強会で発表した、位置情報をシミュレートして、アプリをデバッグする方法のまとめです。
Sosuke Okubo
February 10, 2017
Tweet
Share
More Decks by Sosuke Okubo
See All by Sosuke Okubo
“Build trust through better privacy”を見たメモ
mojage
0
100
IPによる地域制限の浅い話
mojage
0
20
Android Robo Test
mojage
0
59
Kotlin Multiplatform
mojage
0
36
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
110
Actions on Googleのアプリを作ってみた
mojage
0
110
SKStoreReviewController
mojage
0
440
Other Decks in Programming
See All in Programming
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.4k
Goで実践するドメイン駆動開発 AIと歩み始めた新規プロダクト開発の現在地
imkaoru
4
880
Building, Deploying, and Monitoring Ruby Web Applications with Falcon (Kaigi on Rails 2025)
ioquatix
4
2.5k
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
5
2.7k
エンジニアインターン「Treasure」とHonoの2年、そして未来へ / Our Journey with Hono Two Years at Treasure and Beyond
carta_engineering
0
400
CSC305 Lecture 09
javiergs
PRO
0
300
Leading Effective Engineering Teams in the AI Era
addyosmani
7
570
Devoxx BE - Local Development in the AI Era
kdubois
0
130
ALL CODE BASE ARE BELONG TO STUDY
uzulla
27
6.6k
AkarengaLT vol.38
hashimoto_kei
1
110
Webサーバーサイド言語としてのRustについて
kouyuume
1
3.9k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
550
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
9.1k
Speed Design
sergeychernyshev
32
1.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
It's Worth the Effort
3n
187
28k
How STYLIGHT went responsive
nonsquared
100
5.8k
jQuery: Nuts, Bolts and Bling
dougneiner
65
7.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.7k
Producing Creativity
orderedlist
PRO
347
40k
Balancing Empowerment & Direction
lara
5
700
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Transcript
スマホアプリ開発で位置情報 をシミュレーションする 株式会社エクストーン社内勉強会 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 ・などそのへんだと思われますが、まだ調査中です…
おわり