SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Taunton, UK
    Posts
    787
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Locate places within X miles

    I am creating an accommodation listing site and need to be able to enter a location (either UK postcode or town or city) and for the site to return me a list of all places that are within X miles of this location.

    Anyone any idea how such a system would be created? Please note I need this for the UK only.

    Many thanks

    Paul
    Mediakitchen Limited
    App Development | Website Design & Development | Flash Game Development
    Somerset, UK
    http://www.mediakitchen.co.uk

  2. #2
    secure webapps for all Aleksejs's Avatar
    Join Date
    Apr 2008
    Location
    Riga, Latvia
    Posts
    755
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi!
    If you can get geospatial data about all objects, then you can use, for example, MySQLs spatial extensions to calculate distance between two points and return only those results that are within specified range. I have not used them myself, but suspect that it would not be too difficult (if you can get geospatial data that is).
    Other solution is to make a mashup with existing map engine (Google maps, yahoo maps etc).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •