• Register

ACTIVE Network API Forums

API Forum

RSS Feed

Location being ignored

    • Brian
    • Topic created 13 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 13 years ago

  1. jarredd13 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. Brian13 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. Brian13 years ago

    not sure why it posted giant

  4. jarredd13 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. jarredd13 years ago

    --

    city,state,country

    postal code,country

    state,country

    postal code (US is assumed country)

    state (US is assumed country)

    --

  6. Brian13 years ago

    sweet, that seemed to fix it, thanks :D

[ Page 1 of 1 ]