Gregory Oschwald

Results 152 comments of Gregory Oschwald
trafficstars

There isn't much to go on here. I would suspect that the file is getting messed up when you transfer it to the server. One thought is that your editor...

I'd suggest contacting [email protected]. It sounds like the file is invalid, but it is not clear how from your description. They should be in a better position to help you.

`$response->ipAddress->location->latitude` should work fine. What error are you getting? Please note that not all IP addresses will have coordinates. The return value would be `null` in that case.

Try: ``` $fraudDetection->ipAddress->location->accuracyRadius; $fraudDetection->ipAddress->continent->code; $fraudDetection->ipAddress->country->isoCode; $fraudDetection->ipAddress->country->isHighRisk; ``` See the [API docs](http://maxmind.github.io/minfraud-api-php/doc/v1.4.0/) for the full list of property names.

[`names` is an array](http://maxmind.github.io/minfraud-api-php/doc/v1.4.0/class-GeoIp2.Record.City.html). `$fraudDetection->ipAddress->city->name` will likely do what you want unless you set `locales` in the options array. If you want to specify the locale explicitly, you could do...

Unfortunately, I don't think there is an easy way to do this currently.

The `*start` parameter is an `MMDB_entry_s` value. In most cases, this will come from the `MMDB_lookup_result_s` value returned by `MMDB_lookup_string()` or `MMDB_lookup_sockaddr()`. This could be spelled out more, but the...

I don't know that we are likely to add CSV support to this tool. The MMDB files are generally used directly and can easily be updated atomically. With the CSVs,...

To iterate over collection, you will need to use the `offset_to_next` field. See this example for maps: https://github.com/maxmind/libmaxminddb/blob/ed7a4252c8a2f19885479fe35ea9e8a12106a1ec/src/maxminddb.c#L1255-L1283 And for arrays: https://github.com/maxmind/libmaxminddb/blob/ed7a4252c8a2f19885479fe35ea9e8a12106a1ec/src/maxminddb.c#L1231-L1239

You can look up particular map values or array index values directly with `MMDB_get_values()`, e.g., from your example above: ``` MMDB_get_value(&result.entry, &entry_data, "names", "en", NULL); ``` This would look up...