← 總目錄 / Contents

Chapter 07 · Location-Based Services

位置服務|從零開始 / Start from zero

學習方法 / How to study: 依照步驟閱讀英文及中文解說,嘗試例子,再到題目頁做自測。 / Read each step and example in order, then practise.

本章路線圖 / Learning path

  1. 1. What is a location-based service?|甚麼是位置服務?
  2. 2. Cell ID as the starting point|由 Cell ID 開始
  3. 3. Convert time to distance|把時間轉成距離
  4. 4. Turn ranges into coordinates|由距離求座標
  5. 5. Understand TDOA|理解到達時間差
  6. 6. GPS and indoors|GPS 與室內定位

開啟補充筆記、計算與自測 / Open additional notes, calculations and quiz →

STEP 01

1. What is a location-based service?|甚麼是位置服務?

An LBS uses a device’s location to select or adapt a service. Its components typically include a device, network, positioning method, service provider and map or GIS data. Position is an estimate: it can be unavailable or have an error range.

位置服務 LBS 利用裝置位置選擇或調整服務。組件通常包括裝置、網絡、定位方法、服務供應商和地圖或 GIS 資料。位置只是估計值,可能不可用或帶有誤差範圍。

例子及解法 / Example & reasoning

Navigation, nearby shops and emergency dispatch are examples. A map marker does not imply the reported coordinate is exact. / 導航、附近商店及緊急派遣都是例子;地圖上有標記不代表座標完全準確。

STEP 02

2. Cell ID as the starting point|由 Cell ID 開始

The network knows which cell serves a device. Cell-ID positioning estimates that the device is somewhere in that cell. It is simple and needs little extra measurement, but a large or irregular coverage area produces a broad uncertainty region. Timing-related range information can narrow it.

網絡知道哪個細胞正在服務裝置。Cell ID 定位估計裝置位於該細胞內;方法簡單、額外量度少,但細胞大或形狀不規則時,不確定範圍便很大。時間相關距離資訊可縮小範圍。

例子及解法 / Example & reasoning

A small urban cell can give a narrower estimate than a large rural cell, although coverage conditions also matter. / 小型城市細胞可能比大型鄉郊細胞提供較窄估計範圍,但仍受覆蓋情況影響。

STEP 03

3. Convert time to distance|把時間轉成距離

TOA uses distance=speed×propagation time. Radio travels approximately 3×10⁸ m/s, equal to 300 m per microsecond. Before subtracting timestamps, express send and receive times in the same clock reference. An unknown clock offset becomes a distance error.

TOA 使用距離=速度×傳播時間。無線電速度約 3×10⁸ 米/秒,相當於每微秒約 300 米。相減之前,發送及接收時間必須換算成同一時鐘基準;未知時鐘偏差會變成距離誤差。

例子及解法 / Example & reasoning

Sender is .010 μs fast and displays .002 μs. In receiver time the send time is .002−.010=−.008 μs. If reception is 1.000 μs, propagation time is 1.008 μs and range is 302.4 m. / 發送時鐘快 .010 微秒且顯示 .002,換算為 −.008;接收時間 1.000,傳播時間 1.008 微秒,距離 302.4 米。

STEP 04

4. Turn ranges into coordinates|由距離求座標

In 2D, a known range from a base station defines a circle. Two circles usually have zero, one or two intersections; a third independent circle or another condition can distinguish two candidates. For base station (a,b), use (x−a)²+(y−b)²=r². Subtract equations to eliminate x²+y².

二維空間中,距某基地站的已知距離形成圓。兩圓通常有零、一或兩個交點;第三個獨立圓或其他條件可區分兩個候選點。基地站在 (a,b) 時,方程為 (x−a)²+(y−b)²=r²。相減方程可消去 x²+y²。

例子及解法 / Example & reasoning

Stations (0,0),(6,0),(0,8), all ranges 5: x²+y²=25; (x−6)²+y²=25 → x=3; x²+(y−8)²=25 → y=4. Answer (3,4). / 代入三圓並相減,得 x=3、y=4,答案 (3,4)。

STEP 05

5. Understand TDOA|理解到達時間差

If synchronized receivers observe the same signal, subtracting arrival times cancels the common unknown transmit time. The time difference corresponds to the difference between two ranges, not either range individually. A constant difference of distances to two points forms a hyperbola in 2D. Multiple independent differences are needed.

若同步接收站觀察同一訊號,兩個到達時間相減可消除共同未知的發送時間。時間差對應兩個距離的差,而不是其中一個距離。二維空間中,到兩點距離差固定形成雙曲線;需要多個獨立差值。

例子及解法 / Example & reasoning

For Δt=.2 μs, range difference=cΔt=300×.2=60 m. Receiver synchronization, multipath and geometry still matter. / Δt=.2 微秒時距離差為 60 米;接收站同步、多徑及幾何仍會影響準確度。

STEP 06

6. GPS and indoors|GPS 與室內定位

GPS estimates ranges from satellite signals. Because receiver clock bias is another unknown, a 3D position plus clock normally needs at least four independent satellite measurements. Indoors, walls attenuate signals and reflections create multipath; Wi-Fi fingerprinting, BLE, UWB, visible light and ultrasound are alternatives.

GPS 以衛星訊號估計距離。由於接收器時鐘偏差也是未知數,三維位置加時鐘一般需要至少四個獨立衛星量度。室內牆壁會衰減訊號,反射亦形成多徑;可改用 Wi-Fi 指紋、BLE、UWB、可見光或超聲波。

例子及解法 / Example & reasoning

Wi-Fi fingerprinting compares the observed signal pattern with a pre-collected location database; changes to the environment can make fingerprints outdated. / Wi-Fi 指紋法把觀察到的訊號模式與預先建立的位置資料庫比較;環境變化可令指紋過時。

下一步 / Next step

做本章計算例題與自測 / Practise this chapter →

做綜合模擬題 / Try the mock exam →