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
22
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
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
410
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
180
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
240
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
380
安いハードウェアでVulkan
fadis
0
740
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
140
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
260
Windows on Ryzen and I
seosoft
0
350
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
3
1.8k
The free-lunch guide to idea circularity
hollycummins
0
330
CSC307 Lecture 14
javiergs
PRO
0
480
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
510
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7k
Producing Creativity
orderedlist
PRO
348
40k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
76
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
89
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
480
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
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 ・などそのへんだと思われますが、まだ調査中です…
おわり