Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Place Id + Coords as well as Value ? #25

Open
vexkiddy opened this issue Apr 11, 2022 · 1 comment
Open

Return Place Id + Coords as well as Value ? #25

vexkiddy opened this issue Apr 11, 2022 · 1 comment

Comments

@vexkiddy
Copy link

vexkiddy commented Apr 11, 2022

hiya, does your implementation (GooglePlacesAutocomplete.svelte) return the place ID and the lat and long too ? I can get the value eg. the street address, however it would be great to retrieve the place ID and long lat coords too. I'm using your Geocoder to capture data in a form, to then link out to Google maps later on. This would mean when linking out you can pass the coords + street name + place id and get google maps to display the place with all its ratings etc. Currently just doing this with the street address you don't get any of that important info.

Many thanks for the great sveltekit implementation btw! :D

@vexkiddy
Copy link
Author

also, would it be possible to retrieve the place name in the value that is returned ? or have an option to do so ? as mentioned above the place gets converted into a street address and removes the venue name.. eg. when you search for soho house berlin, the field updates with its address only, eg. Torstraße 1, 10119 Berlin, Germany not Soho House, Torstraße 1, 10119 Berlin, Germany

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant