So I'm running a query against the search api and passing the location, but it seems to be ignoring it and just returning the soonest races. Any ideas? I've tried both zipcode and city, but it keeps returning races that are not even close
Message edited by Brian 13 years ago
jarredd
–
13 years ago
Hi there Brian,
If you can provide a sample of the API query, then I should be able to help troubleshoot the issue (Feel free to leave off your API Key)...
So I'm running a query against the search api and passing the location, but it seems to be ignoring it and just returning the soonest races. Any ideas? I've tried both zipcode and city, but it keeps returning races that are not even close
Message edited by Brian 13 years ago
jarredd – 13 years ago
Hi there Brian,
If you can provide a sample of the API query, then I should be able to help troubleshoot the issue (Feel free to leave off your API Key)...
Best Regards,
Jarred
Technical Account Manager, Active Network
Brian – 13 years ago
<struct Faraday::Request path="search", params={"api_key"=>"***", "v"=>"json", "location"=>"Dallas, Tx", "m"=>"meta:startDate:daterange:today..", "f"=>"activities", "s"=>"date_asc", "num"=>10, "page"=>1, "radius"=>50}, headers={}, body=nil, options={}>
Brian – 13 years ago
not sure why it posted giant
jarredd – 13 years ago
Brian,
Try changing the "location" parameter to "l"... then use one of the formats below to specify.
Let me know if this works.
Best regards,
Jarred
Technical Account Manager, Active Network
jarredd – 13 years ago
--
city,state,country
postal code,country
state,country
postal code (US is assumed country)
state (US is assumed country)
--
Brian – 13 years ago
sweet, that seemed to fix it, thanks :D