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

[Feature] Search by "Text" and "Near Me" #383

Open
2 tasks
elchris opened this issue Nov 20, 2020 · 1 comment
Open
2 tasks

[Feature] Search by "Text" and "Near Me" #383

elchris opened this issue Nov 20, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@elchris
Copy link

elchris commented Nov 20, 2020

User Story

Goals:

Location Sniffing Goals:

  • Most users just want to find things near them
    • Having to type their location in a box is somewhat overkill and redundant
    • It also requires us to query a Google API to find lat/long pairs

Searching for Things Goals:

  • Users also want to search for "things", by typing things in a text search box like they would in google:
    • shoes
    • hair
    • cigars
    • food
    • sports bar
    • drinks
    • etc.

Enabling Factors:

  • We could leverage the browser's Geo/GPS API
    • On mobile devices, it can use the device's GPS receiver
    • On desktop/laptops, it uses a combination of things including:
      • Matching WiFi access point's SSID against databases of locations of SSIDs
      • IP Geo-Matching
      • etc.
    • Caveat: When using this feature, the user gets prompted for permission with an optional checkbox to "remember decision for a day"
      • This experience can be somewhat abrasive
      • And this could well invalidate this whole approach
  • Since July 2020, the API has supported a "search" HTTP GET Parameter
    • This parameter can be added to any existing query
    • It will return results relevant to whatever the user entered.
    • It matches results against several fields

Proposed Solution:

  • A more streamlined Search Experience:
    • [ bbq ] [Near Me] [go]
      • the first box is the free-form search from the user
      • "Near Me" is a pull-down selected by default
        • Its other option is "Near ..."
          • When selected, it presents the user with a box to enter a location they want
  • Radius should be kept to whatever we use right now by default

Code Sample:

if (navigator.geolocation) { navigator.geolocation.getCurrentPosition( function (position) { let lat = position.coords.latitude; let lng = position.coords.longitude; } ); }

Acceptance Criteria

  • Search Experience on Homepage
  • Search Experience on Businesses Search Page
@elchris elchris added the enhancement New feature or request label Nov 20, 2020
@brianjhanson
Copy link
Contributor

I can take a run at this one.

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

No branches or pull requests

6 participants