You are here: Foswiki>Extensions Web>Macros? >VarGEO (21 Mar 2009, WillNorris) Edit this topic text (e) Attach an image or document to this topic; manage existing attachments (a) View sequential topic history View without formatting (v) Create new topic Printable version of this topic (p) More: delete or rename this topic; set parent topic; view and compare revisions (m)

GEO -- geo-location lookup

  • %GEO% provides geo-location services, providing lookup features from IP address, domain name, or physical address.
  • Syntax: %GEO{"%REMOTE_IP_ADDRESS" format="$country_code ($lat,$lng)"}%
  • Examples:
    • %GEO{"82.94.245.62" format="$metro_code"}%
    • %GEO{"foswiki.org" format="$country_code ($lat,$lng)"}%
    • %GEO{"Amsterdam"} format="$city, $country_code"}%
    • %GEO{"%REMOTE_IP_ADDRESS%"}%

Topic revision: 21 Mar 2009, WillNorris
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads