marleymarl / geotimeline

12 stars 10 forks source link

Place search feature required #40

Closed KshitijMhatre closed 4 years ago

KshitijMhatre commented 4 years ago

User might not always find visited places by scrolling or he may need to find landmarks with search. This support is required in component. A search bar with autocomplete suggestions.

marleymarl commented 4 years ago

Hi @KshitijMhatre could you give a rough mock-up of where you will put it? I think it's a great idea by the way - I just want to make sure we have a thought of where it will fit.

heldersepu commented 4 years ago

@KshitijMhatre I added the input on the top of the map:

Screenshot from 2020-04-04 22-55-32

Getting error: This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError I think that is something @marleymarl has to enable for us.

but next steps will be to move the map to the location... see if you can get that to work

heldersepu commented 4 years ago

Looking good! in my tests precise address are not showing in the search, for example this is the location of a hardware store near me and it does not auto-complete or gives us a result: 12525 W Sunrise Blvd, Sunrise, FL 33323 seems only cities are getting returns :thinking:

KshitijMhatre commented 4 years ago

So setting type list in types prop will restrict results to only those types. Passing empty list selects all type, while not sending this prop will select (cities) by default

heldersepu commented 4 years ago

Looks good