Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7736489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:44:40+00:00 2026-06-01T07:44:40+00:00

I have a little side project where I allow radius search. You input a

  • 0

I have a little side project where I allow radius search. You input a city, state (or a zipcode) and a radius, and I return results based on the zip codes returned. This currently relies on php and mysql. I would like to move this process client-side.

I’m coming up short finding a solution using YQL, so I’m wondering if anyone else has an idea or a nudge in the right direction.

Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:44:41+00:00Added an answer on June 1, 2026 at 7:44 am

    This isn’t YQL, but it may help. Personally, I’d look for a database of ZIP codes with a latitude/longitude. When you/the users specifies a ZIP code and a radius, you can then query the lat/lng of their entry and then perform a lookup for other ZIP codes nearby.

    This is a radius search that takes into account the curvature of the earth for calculations:

    https://developers.google.com/maps/articles/phpsqlsearch

    The fun part:

    SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance 
    FROM markers HAVING distance < 25 
    ORDER BY distance LIMIT 0 , 20;
    

    Failing that, you could always look for an API (perhaps Google’s navigation/directions) and retrieve the total (driving) distance between 2 ZIP codes.

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my little designer tool (my program). On the left side I have
I have little problem in regular expressin creation. Expected input: blahblahblah, blahblahblah, 'blahblahblah', blahblahblah,
I am working on a little side project (program for Android platform)and I don't
I have a question, I'm currently working on a little project of mine and
As a little side project, I am starting to build a new website for
I've started a little side project to try to learn a few new concepts
I have a little Android project going on which involves some IPC where client
I am veteran server side java developer. I have little experience in client web
Alright well I recently got into normalizing my database for this little side project
I have little bit longer question for you - but hope answer will be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.