---
# System prepended metadata

title: 判斷某座標點(LatLng)是否被包含在一polygon(多邊形)內
tags: [GMS]

---

判斷某座標點(LatLng)是否被包含在一polygon(多邊形)內
===

我的做法是在 `gradle(.App)` 檔案中加入
```
dependencies {
    compile 'com.google.maps.android:android-maps-utils:0.5+'
}
```


## Ref.
[PolyUtil is cannot be resolved by android studio.](https://androidforums.com/threads/polyutil-is-cannot-be-resolved-by-android-studio.1239668/)
[How do I import com.google.maps.android.SphericalUtil in Android Studio?](https://stackoverflow.com/questions/30395825/how-do-i-import-com-google-maps-android-sphericalutil-in-android-studio/30396796)

###### tags: `GMS`