How to get geolocation in javascript

Wednesday 08th, Nov, 2017 | #HTML 5 #Ajax #Plugins

Geolocation using API is a free (for the first 1,000 requests per day) IP information web service providing geolocation, hostname, organization and other data types. The API returns a JSON response containing data fields describing the specified IP. The API supports JSONP callbacks and can provide additional information through a paid service, such as proxy detection, scraping prevention, and improved geolocation accuracy.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">


        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>Documento sin título</title>

        <script src=""></script>

        <script type="text/javascript">

        	function getGeo(){

	        	$.get("", function (response) {






	<body onload="getGeo()">