Skip to content

domsammut/freegeoip_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages