/maxmind-ip-geolocate-google-maps-with-directions

A JavaScript mash-up between MaxMind IP Geolocation API and Google Maps API to deliver automatic driving directions on your website that automatically detect the visitor's location and plot maps and directions to your location.

WARNING:

Max-mind has changed their terms of service since I first published this script (over two years ago). THIS SCRIPT WILL NO LONGER WORK UNLESS YOU PURCHASE A MAX-MIND SUBSCRIPTION. Anyway, there are free alternatives available, checkout the Telize version (I dropped it in my public Github account).

maxmind-ipgeolocate-google-maps-with-directions

A JavaScript mash-up I created using MaxMind IP Geolocation and Google Maps to deliver automatic driving directions and maps from the visitor's approximate location to a destination of your choosing.

Pre-requisites:

  • A Google Maps API key.
  • Agreement to the MaxMind Terms of Service.

Installation:

  1. Upload demo.html to your webserver.
  2. Replace the API key Portion in between with your own Google Maps API key.
  3. Replace the destination address in between with your destination.
  4. Save your changes and that's it, you're done.

Customization:

See available MaxMind params at http://dev.maxmind.com/ and all things Google Maps at https://developers.google.com/maps/ This script was originally designed using Google Maps v2, it can be adapted to work with v3 with little or no customization. A similar API exists for most driving direction services, such as Bing Maps, OpenStreetMaps, MapQuest, and many many others.

About:

I built this out during the construction of an auto-body dealership client's website several years ago.

Demo:

http://dubows.com/demo.html