Laravel stevebauman/location 返回错误数据

Laravel stevebauman/location returning wrong data

使用:

我正在使用上述详细信息在本地开发一个应用程序,但是在使用该包时,我返回的数据不正确。

我已经通过两种方式对此进行了测试,首先是自动检测 ip 例如:Location::get(); 第二种是手动输入我的 ip 例如:Location::get('192.168.1.1');

每次我得到相同的数据时:

object(Stevebauman\Location\Objects\Location)[141]
  public 'countryName' => string 'United States' (length=13)
  public 'countryCode' => string 'US' (length=2)
  public 'regionCode' => string 'CA' (length=2)
  public 'regionName' => string 'California' (length=10)
  public 'cityName' => string 'Mountain View' (length=13)
  public 'zipCode' => string '' (length=0)
  public 'isoCode' => string '' (length=0)
  public 'postalCode' => string '94043' (length=5)
  public 'latitude' => float 37.4192
  public 'longitude' => float -122.0574
  public 'metroCode' => string '' (length=0)
  public 'areaCode' => string '' (length=0)
  public 'isp' => string 'Google Inc.' (length=11)
  public 'ip' => string '66.102.0.0' (length=10)
  public 'driver' => string 'Stevebauman\Location\Drivers\Telize' (length=35)
  public 'error' => boolean false

有什么想法吗?

我已经弄明白了.. 包配置文件中有一个 localhost_testing 变量需要设置为 false.