Pick place or location with native performance
npm install capacitor-place-picker
npx cap sync
pickPlace(options: PlacePickerOptions) => Promise<PlacePickerResults>
Returns: Promise<PlacePickerResults>
Prop |
Type |
latitude |
number |
longitude |
number |
Prop |
Type |
name |
string |
streetName |
string |
city |
string |
state |
string |
zipCode |
string |
country |
string |
Prop |
Type |
Default |
presentationStyle |
PlacePickerPresentationStyle | 'modal' | 'fullscreen' |
PlacePickerPresentationStyle.fullscreen | 'fullscreen' |
title |
string |
'Choose Place' |
searchPlaceholder |
string |
'Search...' |
color |
string |
'#FF0000' |
contrastColor |
string |
'#FFFFFF' |
locale |
string |
'en-US' |
initialCoordinates |
PlacePickerCoordinate |
{latitude: 25.2048, longitude: 55.2708 }
|
enableGeocoding |
boolean |
true |
enableSearch |
boolean |
true |
enableUserLocation |
boolean |
true |
enableLargeTitle |
boolean |
true |
rejectOnCancel |
boolean |
true |
PlacePickerPresentationStyle
Members |
Value |
modal |
'modal' |
fullscreen |
'fullscreen' |