Skip to content

Auto set location in search parameters #11

@wlingke

Description

@wlingke

This one is semi-difficult. If you can't get to it, I can do it. But its a good exercise for you because it touches on a bunch of topics (routes, loads of promises, etc).


Auto set the location search field based on (in order):

  1. If user is logged in & has city/state in profile - use data.loc
  2. If user is not logged in or doesn't have city/state - use HTML5 geolocation (http://www.w3.org/TR/geolocation-API and http://www.w3schools.com/html/html5_geolocation.asp)

Also need probably need a button/link to clear location.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions