Pro Data Visualization Using R and JavaScript by Tom Barker

Pro Data Visualization Using R and JavaScript by Tom Barker

Author:Tom Barker [Barker, Tom]
Language: eng
Format: epub, pdf
Tags: Computers, Web, Software Development & Engineering, Tools, Web Programming
ISBN: 9781430258063
Publisher: Apress
Published: 2013-06-19T04:00:00+00:00


return $logArray;

}

Next you will create the functionality for the getLocationbyIP() function.

Geolocation by IP

In the getLocationbyIP() function, you can take the array that you made by parsing a line of the access log and use the IP field to get the geographic location. There are many ways to get geographic location by IP address; most involve either calling a third-party API or downloading a third-party database with the IP location information prepopulated. Some of these third parties are freely available; some have a cost associated with them.

For our purposes, you can use the free API available at hostip.info. Figure 5-7 shows the hostip.info home page.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.