Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Robert Walker
Robert Walker
17,146 Points

Addresses / locations where to look?

Been looking into location searches and how to best store user locations for a project I have coming up but can't seem to find a source of all locations within the UK.

I will be building a signup form that should be able to do a number of things related to address.

(1) Enter post code (zip code) and have it return all the addresses related to that post code so they they can select their address from it.

(2) Use this to store a google maps location pointer that will later be used on their profile page to show their location.

(3) Users will be able to search for people by location, street address, post code or name.

(3a) Searching by post code will list five people closest to the post code entered using ajax on key up.

Are there any tools or pre built databases for the above?

Ive seen a few websites offering APIs to some of the features but they cost a lot, just thought I would see if anyone knows a better way / manual way to do it.

1 Answer

Most geoIp API's are not accurate. They will get the country right but after that its debatable. If I were you I would use the browser location features.

Robert Walker
Robert Walker
17,146 Points

http://www.pcapredict.com/en-gb/index/

I mean a lot like this Kristian, this has all the features but it costs a lot to use it, I was wondering if there are the same type of things done for free by downloading databases yourself or a free API by someone.