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
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
スマホアプリ開発で位置情報をシミュレーションする
社内勉強会で発表した、位置情報をシミュレートして、アプリをデバッグする方法のまとめです。
Sosuke Okubo
February 10, 2017
More Decks by Sosuke Okubo
See All by Sosuke Okubo
“Build trust through better privacy”を見たメモ
mojage
0
110
IPによる地域制限の浅い話
mojage
0
29
Android Robo Test
mojage
0
69
Kotlin Multiplatform
mojage
0
53
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
120
Actions on Googleのアプリを作ってみた
mojage
0
130
SKStoreReviewController
mojage
0
470
Other Decks in Programming
See All in Programming
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
170
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
420
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
290
Are APIs Still Relevant in the AI Era?
soyuka
0
260
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
170
新卒PdEのリアル
ryu1013
1
500
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
460
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
190
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
150
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
290
[GoCon2026] When Goroutines Are Not Enough: Runtime Locality in High-Throughput Go
takehaya
6
2.3k
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
The Spectacular Lies of Maps
axbom
PRO
1
1k
The browser strikes back
jonoalderson
0
1.7k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.1k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Docker and Python
trallard
47
4.2k
Ruling the World: When Life Gets Gamed
codingconduct
0
340
Six Lessons from altMBA
skipperchong
29
4.5k
Designing for humans not robots
tammielis
254
26k
My Coaching Mixtape
mlcsv
0
320
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 ・などそのへんだと思われますが、まだ調査中です…
おわり