Description
React Geosuggest is a React autosuggest input for the Google Maps Places API. As someone types a place name, it shows matching suggestions from Google, and selecting one fills the field. It can also use your own suggestions as defaults, and it works with Preact as well as React. To use it, you include the Google Maps Places API in your HTML and create a Google API key with the Geocoding API, the Places API Web Service and the Maps JavaScript API enabled. The README suggests the @ubilabs/react-google-maps package to load the Google Maps libraries. The component is usually installed from npm and used in a React build such as Webpack or Parcel, and a standalone build is also provided, which needs React available as a global. Its properties let you set the placeholder, an initial value, an ID for multiple instances, class names and styles for the input, suggestion list and suggestion items, and whether the input is disabled. To get localized suggestions you can bias results with a location, a radius in meters or bounds, and you can restrict predictions to specific countries. The README documents each property with its type and default value, and it links a live demo. The project is open source on GitHub under ubilabs/react-geosuggest.…
Highlights
- Autosuggest for places from the Google Maps Places API
- Results biased by location, radius or bounds
- Country restriction and custom default suggestions
- Works with React and Preact
- Style props for input and suggestion list
Ratings & Reviews
No ratings yet
Be the first to rate react-geosuggest.
People also visit

react-native-google-places-autocomplete
Customizable Google Places autocomplete component for iOS
react-geosuggest FAQ
What is React Geosuggest?
A React autosuggest input that gets place suggestions from the Google Maps Places API.
Is it free?
The library is open source and hosted on GitHub. You need your own Google Maps API key with the APIs listed in the README.
Which Google APIs do I need?
The README lists the Google Maps Geocoding API, the Google Places API Web Service and the Google Maps JavaScript API.
How do I install it?
Install it from npm and include it in your React build, or use the standalone dist build with React available as a global.
Does it work with Preact?
Yes. The README says it works with Preact too.
Can I limit results to one country or area?
Yes. The country property restricts predictions, and location, radius or bounds bias the suggestions.
Where can I see it?
The README links a live demo.
What are the best react-geosuggest alternatives?
Popular alternatives to react-geosuggest include react-places-autocomplete, react-native-google-places-autocomplete and react-google-maps. See all react-geosuggest alternatives


















