Conversation
|
Hi @bicf, Thank you for your PR! I appreciate the updates to the source file. Could you also consider updating the library folder for consistency? Let me know if you need any guidance. |
Hi @shukerullah Please let me know the tool you've used to build the |
|
Thanks @bicf and @ivan-redooc for your start on this! I've further enhanced the changes and merged the PR. Could you test it with a Here's an example of how to use it: import { setDefaults, fromPlaceId } from 'react-geocode';
setDefaults({
key: 'YOUR_API_KEY', // Replace with your API key
language: 'en', // Default language for responses
region: 'es' // Default region for responses
});
fromPlaceId('ChIJd8BlQ2BZwokRAFUEcm_qrcA')
.then(({ results }) => {
const { lat, lng } = results[0].geometry.location;
console.log(lat, lng);
})
.catch(console.error);Appreciate your help! 😊 |
Yes The sample code is correct! |
…into pr-master # Conflicts: # README.md # src/index.js
To allow to get geocode infos using the
place_idstring