• Register

ACTIVE Network API Forums

API Forum

RSS Feed

Location being ignored

    • Brian
    • Topic created 15 years ago

    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 15 years ago

  1. jarredd – 15 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

  2. Brian – 15 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={}>

  3. Brian – 15 years ago

    not sure why it posted giant

  4. jarredd – 15 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

  5. jarredd – 15 years ago

    --

    city,state,country

    postal code,country

    state,country

    postal code (US is assumed country)

    state (US is assumed country)

    --

  6. Brian – 15 years ago

    sweet, that seemed to fix it, thanks :D

[ Page 1 of 1 ]