Currently, I am loading restaurants for a city into my database by making Yelp API requests. I could load more than one city's worth of restaurants into my initial dataset, i.e. "Sunnyvale" and "San Francisco", so that restaurants from these two cities would be stored in my database.
For my app, what if I get a user that does not belong to either city?
During the signup, when I come across a user like this, I would like to add the city added to my database and make a Yelp API request to grab and load all restaurants for this particular city into my database.
What if the user spells the city wrong? This would not affect the API call, as Yelp is smart enough to figure out which city you are referring to and still return results, but this could affect typos in my database. And I do not want to have a list of all cities that they can choose from...
Possibilities:
Get user's full address for autocomplete of location information - But I don't need to know their address information, just city...
Validation of provided information
Get user to input zip code (Yelp accepts zip codes, not just city, as search parameter for location), but what if user wants to see restaurants for another city? Then they would need to know zip code for that city.
This is also related to Issue #10 if I wanted unique record for city, state, country... But still need the user input for this somehow to populate these fields.
Currently, I am loading restaurants for a city into my database by making Yelp API requests. I could load more than one city's worth of restaurants into my initial dataset, i.e. "Sunnyvale" and "San Francisco", so that restaurants from these two cities would be stored in my database.
For my app, what if I get a user that does not belong to either city?
During the signup, when I come across a user like this, I would like to add the city added to my database and make a Yelp API request to grab and load all restaurants for this particular city into my database.
What if the user spells the city wrong? This would not affect the API call, as Yelp is smart enough to figure out which city you are referring to and still return results, but this could affect typos in my database. And I do not want to have a list of all cities that they can choose from...
Possibilities:
This is also related to Issue #10 if I wanted unique record for city, state, country... But still need the user input for this somehow to populate these fields.