사용자가 직관적인 인터페이스를 통해 Google 지도에서 위치를 선택할 수 있도록 해주는 플러터 패키지입니다. google_maps_flutter 위에 구축되어 있으며, 좌표 선택과 주소 세부 정보 검색을 원활하게 제공합니다. 배달 서비스, 여행 앱, 이벤트 계획 도구와 같은 위치 입력이 필요한 앱에 적합합니다. 피커는 상호작용식 지도 탐색, 마커 배치 및 자동 지오코딩을 지원합니다. 광범위한 커스텀 개발 없이도 플러터 앱에 지도 기반 위치 선택 기능을 간편하게 통합할 수 있습니다.
you need also to define NSLocationWhenInUseUsageDescription
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs your location to test the location feature of the GoogleMaps location picker plugin.</string>
Note
The following permissions are not required to use Google Maps Android API v2, but are recommended.
android.permission.ACCESS_COARSE_LOCATION Allows the API to use WiFi or mobile cell data (or both) to determine the device's location. The API returns the location with an accuracy approximately equivalent to a city block.
android.permission.ACCESS_FINE_LOCATION Allows the API to determine as precise a location as possible from the available location providers, including the Global Positioning System (GPS) as well as WiFi and mobile cell data.
You must also explicitly declare that your app uses the android.hardware.location.network or android.hardware.location.gps hardware features if your app targets Android 5.0 (API level 21) or higher and uses the ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission in order to receive location updates from the network or a GPS, respectively.
The following permissions are defined in the package manifest, and are automatically merged into your app's manifest at build time. You don't need to add them explicitly to your manifest:
android.permission.INTERNET Used by the API to download map tiles from Google Maps servers.
android.permission.ACCESS_NETWORK_STATE Allows the API to check the connection status in order to determine whether data can be downloaded.
Restricting Autocomplete Search to Region
The LocationResults returned can be restricted to certain countries by passing an array of country codes into the countries parameter of showLocationPicker(). Countries must be two character, ISO 3166-1 Alpha-2 compatible.
You can find code information at Wikipedia: List of ISO 3166 country codes or the ISO Online Browsing Platform.
The example below restricts Autocomplete Search to the United Arab Emirates and Nigeria