1.0.0releasedFreeGeoIP Service

Returns a users geo location information based off the awesome freegeoip.net API

Clone URLhttps://github.com/domsammut/freegeoip_service.git

Add as a submodulegit submodule add https://github.com/domsammut/freegeoip_service.git extensions/freegeoip_service --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNoNoNo1.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.01.0.0

Readme

FreeGeoIP Service

Returns a users geo location information based off the awesome freegeoip.net API for Symphony CMS

Thanks go to the following people:

House keeping

Any bugs, please report on GitHub. Any feature requests just let me know.

More info about me at https://www.domsammut.com/about and view more info about this extension.

Example Output

An example of the data set returned in your page XML:

<user-geo-info>
     <Ip>8.8.8.4</Ip>
     <CountryCode>US</CountryCode>
     <CountryName>United States</CountryName>
     <RegionCode>CA</RegionCode>
     <RegionName>California</RegionName>
     <City>Mountain View</City>
     <ZipCode>94043</ZipCode>
     <Latitude>37.4192</Latitude>
     <Longitude>-122.0574</Longitude>
     <MetroCode>807</MetroCode>
     <AreaCode>650</AreaCode>
</user-geo-info>

Usage

There is a request limit of 10,000 per hour.

Alternatively you can download the source code for freegeoip.net off GitHub and run your own server and simply update the $location variable in the class.freegeoip_service.php file.

Installation

A stock-standard install process. Full instructions on how install a Symphony extension can be found on their site.

Adding it to your site

  1. Navigate to Pages and edit the page you wish to have FreeGeoIP information
  2. Add the FreeGeoIP Service Data Source
  3. Finished! You'll now see the nodeset in the Page XML.

Version history

Symphony 2.3.1 to 2.x.x

        - Bump to Version 1 and confirm max compatibility to 2.x.x. Thanks for the prompt @twiro.
	

Requires Symphony 2.3.1

        - Confirm compatibility with Symphony 2.6.*
	

Symphony 2.3.1 to 2.4

        - Confirm compatibility with Symphony 2.4
	

Symphony 2.3.1 to 2.3.6

        - Removed superfluous Response XML node that was simply an extra wrapper
	        - Changed root node to conform to Symphony naming practices
	

Symphony 2.3.1 to 2.3.6

        - Requests now made over https.
	

Symphony 2.3.1 to 2.3.6

        - Initial public release