Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

location features #165

Closed
fippo opened this issue Jul 24, 2016 · 2 comments
Closed

location features #165

fippo opened this issue Jul 24, 2016 · 2 comments
Labels

Comments

@fippo
Copy link
Owner

fippo commented Jul 24, 2016

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

@fippo fippo added the feature label Jul 24, 2016
@fippo
Copy link
Owner Author

fippo commented Aug 1, 2016

@dagingaa wants this as

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]

for kibana

@fippo
Copy link
Owner Author

fippo commented Aug 15, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant