Answers.Body: <p>Was using the MaxMind free trial and I didn't have the Web Service set correctly in the Smart Map plugin settings. It needed to be set to GeoIP2 City.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-24T17:59:06.513Z
Answers.Text: Glad you got it sorted! To be clear (for future readers), it needed to be set to "GeoIP2 City" because that was the package that you paid for. The dropdown needs to match your selected MaxMind subscription package.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-21T22:32:40.447Z
Answers.LastActivityDate: 2018-03-21T22:32:40.447Z
Answers.UserDisplayName: Brian Larson
Body: <p>I'm receiving an array with empty values when trying to get visitor info using the <a href="https://plugins.doublesecretagency.com/smart-map/" rel="nofollow noreferrer">Smart Map plugin</a> and its <a href="https://plugins.doublesecretagency.com/smart-map/visitor-geolocation/" rel="nofollow noreferrer">Visitor Geolocation</a> feature. I'm using MaxMind's free trial ($5 worth of queries) since FreeGeoIp.net is not recommended and I've double checked the plugin settings and cleared all caches. Looking at the MaxMind account there are no queries logged and my map/debug output has empty location values via PHP (<a href="https://www.dropbox.com/s/wd8irryxs1qpv7q/Screenshot%202018-03-13%2020.35.09.png?dl=0" rel="nofollow noreferrer">screenshot</a>). Working locally on a .dev domain, running Craft 3 RC and tried FreeGeoIp.net as well but to no avail.</p>
  <p>Twig:</p>
  <pre><code>{% set visitor = craft.smartMap.visitor %}
  {% if visitor %}
    &lt;pre&gt;{{ dump(visitor) }}&lt;/pre&gt;
  {% endif %}
  </code></pre>
  <p>Output:</p>
  <pre><code> array(8) {
    [&quot;ip&quot;]=&gt;
    bool(false)
    [&quot;city&quot;]=&gt;
    bool(false)
    [&quot;state&quot;]=&gt;
    bool(false)
    [&quot;zipcode&quot;]=&gt;
    bool(false)
    [&quot;country&quot;]=&gt;
    bool(false)
    [&quot;latitude&quot;]=&gt;
    bool(false)
    [&quot;longitude&quot;]=&gt;
    bool(false)
    [&quot;coords&quot;]=&gt;
    bool(false)
  }
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-15T02:41:57.333Z
Comments.Text: Hmm. Could this be part of my problem? `craft.app.request.userIP` is returning `string(3) "::1"`. A PHP config issue? Using MAMP Pro on macOS FWIW.
Comments.UserDisplayName: Brian Larson
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-15T04:20:00.847Z
Comments.Text: Good theory... Oddly, I just did some testing locally, and wasn't able to reproduce the problem. Hit me up on Slack via DM, and we can troubleshoot it together.
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-16T17:14:16.350Z
Comments.Text: Thanks for connecting on Slack Lindsey! I'll be sure to post an answer here when we get to the bottom of it. Great plugin support.  : )
Comments.UserDisplayName: Brian Larson
Tags: <plugin-smartmap>
Title: Visitor array has empty values with Smart Map plugin (using MaxMind)
ThreadText: # Visitor array has empty values with Smart Map plugin (using MaxMind)
  
  (Asked by: username_0 on 2018-03-14)
  
  I'm receiving an array with empty values when trying to get visitor info using the [Smart Map plugin](https://plugins.doublesecretagency.com/smart-map/) and its [Visitor Geolocation](https://plugins.doublesecretagency.com/smart-map/visitor-geolocation/) feature. I'm using MaxMind's free trial ($5 worth of queries) since FreeGeoIp.net is not recommended and I've double checked the plugin settings and cleared all caches. Looking at the MaxMind account there are no queries logged and my map/debug output has empty location values via PHP ([screenshot](https://www.dropbox.com/s/wd8irryxs1qpv7q/Screenshot%202018-03-13%2020.35.09.png?dl=0)). Working locally on a .dev domain, running Craft 3 RC and tried FreeGeoIp.net as well but to no avail.
  
  Twig:
  
  ```
  {% set visitor = craft.smartMap.visitor %}
  {% if visitor %}
    <pre>{{ dump(visitor) }}</pre>
  {% endif %}
  
  ```
  
  Output:
  
  ```
   array(8) {
    ["ip"]=>
    bool(false)
    ["city"]=>
    bool(false)
    ["state"]=>
    bool(false)
    ["zipcode"]=>
    bool(false)
    ["country"]=>
    bool(false)
    ["latitude"]=>
    bool(false)
    ["longitude"]=>
    bool(false)
    ["coords"]=>
    bool(false)
  }
  
  ```
  
  **Tags:** plugin-smartmap
  
  > **Comments:**
  > **username_0**: Hmm. Could this be part of my problem? `craft.app.request.userIP` is returning `string(3) "::1"`. A PHP config issue? Using MAMP Pro on macOS FWIW.  
  > **username_1**: Good theory... Oddly, I just did some testing locally, and wasn't able to reproduce the problem. Hit me up on Slack via DM, and we can troubleshoot it together.  
  > **username_0**: Thanks for connecting on Slack username_1! I'll be sure to post an answer here when we get to the bottom of it. Great plugin support.  : )  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-03-21. Score: 2
  
  Was using the MaxMind free trial and I didn't have the Web Service set correctly in the Smart Map plugin settings. It needed to be set to GeoIP2 City.
  
  > **Comments:**
  > **username_1**: Glad you got it sorted! To be clear (for future readers), it needed to be set to "GeoIP2 City" because that was the package that you paid for. The dropdown needs to match your selected MaxMind subscription package.  
  
  ---
  
  