In my JavaScript I have a number of variables as shown:
stop = new google.maps.LatLng(49.093914487013, -117.71569423377514)
waypts.push({
location: stop,
stopover: true
The line in Bold is what I need help with. I have data transmitted to a platform Thingspeak. I have an API that allows me to select the exact value to query; what I need to know is how to use a GET statement (Or anything that would work) to have that Stopover line be True or False based on the result. So IF the result queried by the API is over 8, it's TRUE, if it's under it is false.
The API line looks like this:
Code
GET https://api.thingspeak.com/channels/****/fields/1.json?results=2So How do I set that Bold field to query this and either be TRUE or FALSE based upon the result of this query?
If you need any more info please reply and I can fill in any blanks, but I'm reallllly needing some help here.
Thank you!

Midhun TpRank #388 · 6.5K reputationPosted Jul 31, 2017, 10:00 PM EDT
Jesse Teindl12 reputationPosted Aug 1, 2017, 6:55 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Aug 1, 2017, 5:21 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 1, 2017, 9:36 PM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 2, 2017, 5:40 AM EDT