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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
21
Android Robo Test
mojage
0
60
Kotlin Multiplatform
mojage
0
37
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
110
Actions on Googleのアプリを作ってみた
mojage
0
120
SKStoreReviewController
mojage
0
460
Other Decks in Programming
See All in Programming
Python’s True Superpower
hynek
0
110
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
300
ぼくの開発環境2026
yuzneri
0
250
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
CSC307 Lecture 06
javiergs
PRO
0
690
Gemini for developers
meteatamel
0
100
AtCoder Conference 2025
shindannin
0
1.1k
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.4k
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
180
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
330
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
390
AI & Enginnering
codelynx
0
120
Featured
See All Featured
How to make the Groovebox
asonas
2
1.9k
Design in an AI World
tapps
0
150
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
Ruling the World: When Life Gets Gamed
codingconduct
0
150
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
160
GraphQLとの向き合い方2022年版
quramy
50
14k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
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 ・などそのへんだと思われますが、まだ調査中です…
おわり