ここでは、Geolocation 追跡を使用する方法とその簡潔な概要を説明します。
デバイスの位置を追跡し続けるアプリケーションを作成する場合、3 つのイベント (ボタン) を使用して
Panel オブジェクトをプログラミングできます:
まず、
ポイント追跡の開始をプログラミングします:
Event 'StartTracking'
Composite
Geolocation.ClearLocationHistory()
Geolocation.StartTracking(60,100,"",0)
msg("Start")
EndComposite
EndEvent
次に、
ポイント追跡の停止をプログラミングします:
Event 'StopTracking'
Composite
Geolocation.EndTracking()
msg("Stop")
EndComposite
EndEvent
最後に、
GetLocationHistory メソッドによって GeoPoints を元に戻し、SDMAP グリッドとして表示します:
Event 'SetPositionsInMap'
&locationCollection = Geolocation.GetLocationHistory(&Today)
Endevent
例をダウンロードするには、こちらをクリックしてください:
GeoLocationAPI での追跡。
追跡システムはバッテリーの点で高コストになる可能性があるため、追跡処理はアプリケーションの特定のニーズに基づいて開始および終了する必要があります。
Geolocation - 付近を表示
Geolocation - 現在地を表示
Geolocation 外部オブジェクト
サイレント通知を使用した追跡