Skip to content
Input IPaddress with a geolocation plotted on a JVectorMap
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Creating a PHP PDO IP Address Geolocation Map

Check out Bayesean Blog for more detailed information.


  • PHP server side language use PHP 5.6 and higher.

  • JVector Maps. – Javascript based library .

    • jVectorMap uses only native browser technologies like JavaScript, CSS, HTML, SVG or VML. No Flash or any other proprietary browser plug-in is required. This allows jVectorMap to work in all modern mobile browsers.
  • Updated to Bootstrap 4 (framework).

  • Geolocation Library –

    • Head over to and follow the instructions to create your account and obtain your access token.

    • If you only need basic IP to Geolocation data and do not require more than 10,000 requests per month, you can use the free account. If you'd like more advanced features or more requests than included in the free account you will need to choose one of the paid options.

    • You can find an overview of all available plans at – (JavaScript Object Notation) is a lightweight data-interchange format. Designed to easily read and write. Quick to parse and generate.

    • While the old freegeoip API was limited to provide only the most basic IP to location data, our new API provides more than 20 additional data points including Language, Time Zone, Current Time, Currencies, Connection & ASN Information, and much more. To learn more about all the data points available

    • 10000 free calls per month.


Download the code from above.

Licence MIT.

Happy Coding

You can’t perform that action at this time.