Comments (4)
Hi @eman1000, getAutocompletePredictions()
should be used with lookUpPlaceById()
in most cases (please read the README for more info). getAutocompletePredictions()
returns an array of suggestions of the form:
[ { primaryText: 'Facebook HQ',
placeID: 'ChIJZa6ezJa8j4AR1p1nTSaRtuQ',
secondaryText: 'Hacker Way, Menlo Park, CA, United States',
fullText: 'Facebook HQ, Hacker Way, Menlo Park, CA, United States' },
types: [ 'street_address', 'geocode' ],
}
...
]
Call lookUpPlaceById('ChIJZa6ezJa8j4AR1p1nTSaRtuQ')
- (notice I passed in a placeID
from above) to get the place details.
from react-native-google-places.
Ow okk thanks, let me try it out.
from react-native-google-places.
does this lookPlaceById works with android
from react-native-google-places.
@tolu360 I think you should include lat, lng info on getAutocompletePredictions api. Because app usually show list of places and distance to current location. Better just calculate distance from
first result than make another api call and calculate it.
from react-native-google-places.
Related Issues (20)
- Important places.. HOT 2
- Possible option to process search when user is done typing instead of autocomplete?
- Android - This IP, site or mobile application is not authorized to use this API key. Request received from IP address **** with empty referer HOT 13
- Apple Mach-O linker Error
- over limit query error HOT 1
- Start search only when user clicks on the enter or return key
- To get location using postal code
- Updating GoogleMaps to 3.5.0 HOT 10
- [IOS] priceLevel is returned even if not selected in placeFields - possible billing concern HOT 2
- [iOS] Keyboard don't dismiss after selecting place
- Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo(com.google.android.libraries.places.widget.AutocompleteActivity) HOT 1
- [QUESTION] Is this repo being maintained? HOT 3
- by using RNGooglePlaces.getCurrentPlace() getting wrong current locations in Ios. same code working fine in android
- Place Details Viewport changes starting with Places SDK for iOS v5.0
- Both ACCESS_WIFI_STATE & ACCESS_FINE_LOCATION permissions are required (Android) HOT 1
- Installing with react-native-maps HOT 1
- 8: Location unavailable error when trying to get user current location
- (Android Play Store) Leaked GCP API Keys: Your app contains exposed Google Cloud Platform (GCP) API keys HOT 3
- android build issue -> Could not find com.android.volley:volley:1.1.1 HOT 14
- patch-package react-native-google-places+3.1.2.patch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-google-places.