html – How do I implement Google maps on my website to get a visitors location and direct them to the nearest of multiple locations?-ThrowExceptions

Exception or error:

I have this simple form embedded in my website for directing visitors from a location they specify to my office.

<form action=”http://maps.google.com/maps” method=”get” 
    target=”_blank”>
    Enter your starting address:
    <input type=”text” name=”saddr” />
    <input type=”hidden” name=”daddr” value=”13, Blankson 
    Street, Karu, Abuja” />
    <input type=”submit” value=”get directions” />
    </form>

I would like to modify it to get users location either from a form or using Google's location service and direct them to the nearest of a number of locations from my database.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *