Skip to search.
oodleapi · Oodle API Developers Chat

Group Information

  • Members: 185
  • Category: Webmasters
  • Founded: Jul 18, 2006
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
distance from UK postcode   Message List  
Reply Message #318 of 1158 |
Re: distance from UK postcode

--- In oodleapi@yahoogroups.com, "allw521" <kerampran@...> wrote:

> Using the distance and zip filter within the get query
> only works with US zip codes but not with UK postcodes.
>
> There must be a way as the OOdle website actually works fine with UK
> postcodes. (it is possible to search for classifieds within x miles
> from CO1 (UK postcode)
>
> This is what I want to do:
> $filters['filters'][] = array('type'=>'distance','params'=>array
> ('value'=>50,'units'=>'mi','zip'=>'CO1'));

You're on the right track! For UK distance filters, add
"country_code" to your distance filter with the value of "GBR".

Like this:

$filters['filters'][] = array(
'type' => 'distance',
'params' => array(
'value' => 50,
'units' => 'mi',
'zip' => 'CO1',
'country_code' => 'GBR'
)
);

-Steve Baker
Oodle Engineering





Thu May 1, 2008 7:04 pm

pack_78
Offline Offline
Send Email Send Email

Message #318 of 1158 |
Expand Messages Author Sort by Date

Hi, Using the distance and zip filter within the get query only works with US zip codes but not with UK postcodes. There must be a way as the OOdle website...
allw521 Offline Send Email Aug 15, 2007
9:07 pm

... You're on the right track! For UK distance filters, add "country_code" to your distance filter with the value of "GBR". Like this: $filters['filters'][] =...
Steve B
pack_78 Offline Send Email
May 1, 2008
7:04 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help