The documentation is wrong both in README.md (where it doesn't mention searchByPlaceId) and index.js (where it mentions getByPlaceId which doesn't exist in the code, also has the wrong returned values for both getByPlaceId and getSuggestions).
This adds unnecessary pain to developers, since they need to reverse-geocode the code to understand how to implement search with auto suggest.
The documentation is wrong both in README.md (where it doesn't mention searchByPlaceId) and index.js (where it mentions getByPlaceId which doesn't exist in the code, also has the wrong returned values for both getByPlaceId and getSuggestions).
This adds unnecessary pain to developers, since they need to reverse-geocode the code to understand how to implement search with auto suggest.