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 7634327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:08:37+00:00 2026-05-31T07:08:37+00:00

I need to implement find entries with x miles of town function, so I

  • 0

I need to implement find entries with x miles of town function, so I have a town box with autosuggest attached. Currently I’m using Google’s Geocoding API to get the data for the autosuggest results, but we obviously can’t tune or alter this data and it doesn’t always come up with sensible suggestions (even with a country hint). Are there any other sources of town/city location data? I’ve tried to see if perhaps an export was available from OpenStreetMap or something but I can only find map tiles or vector map data and not POI data for town/city names and locations.

Any suggestions appreciated.
Thanks.

  • 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-05-31T07:08:39+00:00Added an answer on May 31, 2026 at 7:08 am

    Geonames.org has a downloadable list of cities and even postal codes for many countries around the world along with their corresponding lat/lon point. It’s under the Creative Commons Attribution 3.0 License which means that you can use it commercially, but you have to give attribution, among other things.

    While having a downloadable list may mean more work on your end in terms of implementing all of the facets of the search algorithm, the silver lining is that you don’t couple yourself to the uptime/availability of a 3rd-party web service.

    The only other part that’s missing is the distance-calculation formula. You can use the greater-circle distance formula to compute distance.

    I’ve done this myself a number of times. The first time you write the code, it takes a little bit to wrap your head around everything, but once you do it’s a piece of cake thereafter.

    I should probably mention that I’m the founder of SmartyStreets. We do street-based address verification and not only can we tell you if an address is good or not (which helps in a significant number of ways), but we can also give you the lat/lon coordinate for a given street address which can then be plugged in to the above solution to determine proximity to nearby places.

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

Sidebar

Related Questions

I need to implement a simp^le find function which will retrieve the 1st occurence
I need to implement a hash table and hash function using JavaScript. The goal
I need to implement a function for moving records up and down (sorting) and
What I need to implement is to find patterns in a string , store
I´ve searched and didnt find which ports does XMPP uses. I need to implement
i have created a jquery onhover vertical sliding menubar now i need to implement
I need to implement a method to find the MD5 hash of the bytes
I need to implement a bag data structure using the interface java.util.Collection . I'm
I have a long running task that I need to implement on a webpage.
For a project I'm currently working on I need to implement object versioning. Unfortunately

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.