You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quite similar to what Eric did with distance to datacenter... roughly:
var maxmind = require('maxmind');
var cityLookup = maxmind.open('./GeoLite2-City.mmdb');
var city = cityLookup.get('2.150.33.235');
console.log(city.location);
console.log(city.country.iso_code);
console.log(city.continent.code);
which gives us location (lon/lat), county, continent and timezone
The text was updated successfully, but these errors were encountered:
The geo_point mapping will index a single field with the format of lat,lon"
you can give it to me as a string or array
seems array is preferred as it conforms with GeoJSON
but then it’s [lon, lat]
probably easiest to do this with the websocket url on connect and then have a "location" line somewhere. This also means doing multiple lookups from the same process
quite similar to what Eric did with distance to datacenter... roughly:
which gives us location (lon/lat), county, continent and timezone
The text was updated successfully, but these errors were encountered: