le717 / areyouona-date Goto Github PK
View Code? Open in Web Editor NEWDetermine if you are currently on a date!
License: MIT License
Determine if you are currently on a date!
License: MIT License
You may or may not be on a date. It's not totally sure.
404 and 500 responses should be good enough.
Consider using an .env
file
What happens if a z-score is out of range of the upper limit for a "yes" response? Do we get an error? Is it possible to for this happen at all?
Endpoint: https://www.yelp.com/developers/documentation/v3/business_search
Parameters:
latitude
longitude
radius
: 300 meterscategories
: "restaurants"
locale
: "en_US"
(sorry limit
: 5
sort_by
: "rating"
price
: 1,2,3,4
Should high accuracy geolocation data be requested or not? In current limited tests with it not being requested, accuracy variance is high, ranging from 18 meters to 900 meters (with an outlier of 5000 meters).
The Yelp API requires a radius in which to search for businesses. It needs to be set to a value that works well with the accuracy of the geolocation data. See comment
https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions/enableHighAccuracy
How old of geolocation results should we use? How long should we wait for a geolocation response?
Currently, they are both set to five minutes. If you have to wait 5 minutes to get a geolocation result, you're not getting a result, IMO. That one feels as if it needs to be shorter, but by how much?
https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions/timeout
As far as cached geolocation data, I am unsure what to do here. People tend to move around quickly. If your location was collected 3 minutes ago but now you're at a different place, your data is out of date. Requesting a fresh result every time is not a bad idea, unless you run the assessment multiple times. Maybe a 1 minute cache would do?
https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions/maximumAge
I like the cursive font in use for the headers, but the thin, sans-serif body font doesn't seem to match the site's theme. Find a better one.
The extension is broken. Use the snippet directly.
While personally I like Taco Bell, for satire sake, add extra text in the no response if the person is at Taco Bell. This will work because it is unlikely that Taco Bell will generate a high enough score for a "yes" response (although a "maybe" response could occur in college mode).
Examples:
Consider using an .env
file
Lowers the rating/money threshold to be considered a date
A declarative, efficient, and flexible JavaScript library for building user interfaces.
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. đđđ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google â¤ī¸ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.