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

How do you search for places using the geocoder ? #66

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

How do you search for places using the geocoder ? #66

vexkiddy opened this issue Apr 10, 2022 · 1 comment

Comments

@vexkiddy
Copy link

vexkiddy commented Apr 10, 2022

I'm using your amazing sveltekit package on my side project, however when i search for places using the geocoder it doesnt retreive them, i just get countries and cities. when using a map on mapbox's site with all the filters turned off, it finds the place i'm searching for. should i be passing some options to the geocoder so that it doesn't do any filtering of what i'm typing ? if so, whats the best way to do this with the way you've implemented it ? thx!

eg. if you goto the link below and remove the filters you'll see that searching for 'soho house berlin' will return a result, however with the filters on, it doesn't.

https://docs.mapbox.com/playground/geocoding/

@vexkiddy
Copy link
Author

vexkiddy commented Apr 10, 2022

ok, i think i worked it out, is this the correct way to do it ?

<Geocoder types={[]} accessToken="mytokenit" on:result={somePlaceChangeFunction} />

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