Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    custome search engine

    hello,
    I need a location/radius distance from, calculator for my website.

    The display/inputs im going for is:

    Distance From (KM's): ______ <---- derived from google maps ?
    Category: _______ <--- derived from database (MySQL? Web based database?)

    I'm very noob with all coding and I need all the help I can get. I need to make this search completely functional. This function already exists (im aware) I need help setting up the database and making this engine work.

    Please help.

  • #2
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also willing to pay for exact instruction and professional consultation

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Not hard.

    How accurate does the distance calculation need to be? What will be the expected MAXIMUM distance between locations? (HINT: If it's 200KM or less and if accuracy to 100 meters is good enough, the code is much simpler. Shorter distances give better accuracy.)

    Best "trick" is to store the latitude and longitude (and some additional info to make calculations easier) for each searched-for location in your database.

    Here's a demo I did nearly 10 years ago. It's written in ASP code (not PHP, but not hard to convert) and is for the USA, so distances are in miles.
    http://clearviewdesign.com/Newbie/De...AndMapDemo.asp

    Enter any USA 5-digit zip code (use mine: 98296) and see what it shows you.

    Or try 20509 with a radius of 0.1 miles.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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