Google Maps waypoints API, Setting dependencies in js
I'm working with a javascript app which has the Google maps waypoints API, giving directions from A to Z, hitting certain points in the middle, providing the most efficient route. What I need is, for each of the points defined, I want to set a dependency. I have sensors in the field, feeding back values (json, csv,xml). I can call the sensor data with Thingspeak (platform for data) Api, but in the javascript and possibly HTML, how would I have ONLY the points that return a certain value, be valid and plot on the map? I have a codepen I can provide too for more info, I need a bit of help with the js syntax on the waypoint call as well...