siddharthgutta / Entree.LegacyServer

SMS-based Order Ahead Platform
https://textentree.com
2 stars 0 forks source link

Search for restaurants only #459

Closed jlmao closed 8 years ago

jadesym commented 8 years ago

@jlmao So, there's some leeway here on what our possible solutions are. I left it open without a type because of the limitations of the API in not being able to search multiple types, but I think we can do some workarounds.

type — Restricts the results to places matching the specified type. Only one type may be specified (if more than one type is provided, all types following the first entry are ignored). See the list of supported types.

-API

https://developers.google.com/places/supported_types#table1

Since we can only search for one type at time, we can do a couple of things There are around 3 types that probably can fit with our business: bakery, cafe, and restaurant. We have a couple of options:

1) we can do instead is do a search on all 3, but then we need to come up with a scheme to prioritize which search results over another 2) we can just keep it open and take the cost of possibly showing things that are not restaurants because chances are they wont search thing that aren't restaurants 3) ditch bakery and cafe because they're probably not the most likely candidates for our product 4) do a chain of searches depending on if the previous fails to find search results. For example, conduct a search of restaurants and then conduct a search on cafe if restaurant returns 0 results.

I think our best bet may be option 4, since searching 'cafe medici' and 'starbucks' fails to show up with results.

jlmao commented 8 years ago

Yeah let's do the fourth option. I'll close this and implement that