As you say, the postcode lookup is working. The bit that goes wrong is presumably in your server that handles the #fap_form request, which we can't see from here.

I guess that you might be doing something like a standard Store Locator, returning a list of financial planners within a certain radius of the lat/lng of the requested postcode, but then rather than sorting them by distance you're sorting them randomly.

If you only want hits from within the requested postcode, then you need to add that as an extra WHERE clause in your database query.

If you want to include hits from nearby postcodes, but have the hits from the requested postcode at the front, then you either need to modify the randomisation code to do that, or you need to perform two database queries, one where postcode is equal to the requested postcode and one where the postcode is not equal.

--
Mike Williams

--
You received this message because you are subscribed to the Google Groups "Google 
Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to