0.0.1 • Published 3 years ago

capacitor-place-picker v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

capacitor-place-picker

Pick place or location with native performance

Install

npm install capacitor-place-picker
npx cap sync

API

pickPlace(...)

pickPlace(options: PlacePickerOptions) => Promise<PlacePickerResults>
ParamType
optionsPlacePickerOptions

Returns: Promise<PlacePickerResults>


Interfaces

PlacePickerResults

PropType
coordinatePlacePickerCoordinate
addressPlacePickerAddress
didCancelboolean

PlacePickerCoordinate

PropType
latitudenumber
longitudenumber

PlacePickerAddress

PropType
namestring
streetNamestring
citystring
statestring
zipCodestring
countrystring

PlacePickerOptions

PropTypeDefault
presentationStylePlacePickerPresentationStyle | 'modal' | 'fullscreen'PlacePickerPresentationStyle.fullscreen | 'fullscreen'
titlestring'Choose Place'
searchPlaceholderstring'Search...'
colorstring'#FF0000'
contrastColorstring'#FFFFFF'
localestring'en-US'
initialCoordinatesPlacePickerCoordinate{latitude: 25.2048, longitude: 55.2708 }
enableGeocodingbooleantrue
enableSearchbooleantrue
enableUserLocationbooleantrue
enableLargeTitlebooleantrue
rejectOnCancelbooleantrue

Enums

PlacePickerPresentationStyle

MembersValue
modal'modal'
fullscreen'fullscreen'