Travel Planner query results in Null Response

  • 1
  • Problem
  • Updated 5 years ago
I have spent several hours trying to get a query for the travel planner to work.  I have upgraded my developer plan to anvil, and still I am unable to achieve any results using javascript/jquery.  I have other queries that have been working great for several months now, but it appears that I am missing something with this one.

I've tested my http string and it works fine in apigee, but it will not return anything when  I use it in my script.  

I've substituted my actual API Key below with "APIKEY".

<script> jQuery(document).ready(function($) {
url : String(""),
dataType : "jsonp",
success : function(parsed_json) {
var temp_high= parsed_json['trip']['temp_high']['avg']['F'];
Photo of Cohbra11


  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 356 Posts
  • 53 Reply Likes
Your API call looks fine.

Paste it in a browser to see what you get back.

one issue i see, you are setting the html of your element to fcttext1, which does not exist in this function, do you mean to set it to temp_high?
Photo of afelicioni


  • 227 Posts
  • 43 Reply Likes
here a working JSFiddle, including the suggestion from Tim 
Photo of Cohbra11


  • 3 Posts
  • 0 Reply Likes
Thanks, I got it working now.