We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin : MaxMind Geoloc

Development and Programming

Matthieu Fauveau's avatar
Matthieu Fauveau
106 posts
15 years ago
Matthieu Fauveau's avatar Matthieu Fauveau

Hi guys,

Didn’t see any geolocalization plugin and needed one to get the City of the user visiting the site.

As you can guess by the name, it’s based on the MaxMind WebService so you’ll need a license key to use it. It’s really simple and could be improved a lot. Feel free to do that if you need to. As long as you share it here after 😉

Plugin usage is as following :

{exp:maxmind_geoloc license_key='XXXXXXXXXXXX'}
        Country code: {country_code}

        Region: {region}

        City: {city}

        Postal Code: {postal_code}

        Latitude: {latitude}

        Longitude: {longitude}

        Metro Code: {metro_code}

        Area Code: {area_code}

        ISP: {isp}

        Organization: {organization}
{/exp:maxmind_geoloc}

API call results are cached for 15 minutes.

Enjoy!

       
myover's avatar
myover
1 posts
12 years ago
myover's avatar myover

Hey Matthieu, this is exactly what I’m looking for… any chance that you have a more recent/updated version you could share? Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.