whosonfirst / go-whosonfirst-iplookup

Go package for doing IP address to Who's On First record lookups
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Figure out what "Do Not Track" / "FireEagle" for IP lookups means #1

Open thisisaaronland opened 8 years ago

thisisaaronland commented 8 years ago

Something something something:

Note the mmdb -iness of the branch in the URLs above. That is because the "read a pure mmdb file rather than hand-wave away the problem with a static concordances file" work hasn't been checked in to master yet. Soon soon...

Related, there is an iplookup branch of whosonfirst-www-iamhere to establish the default map view on load:

https://github.com/whosonfirst/whosonfirst-www-iamhere/blob/iplookup/www/javascript/mapzen.whosonfirst.iamhere.js#L84-L94

Also, FireEagle: https://en.wikipedia.org/wiki/Fire_Eagle

thisisaaronland commented 8 years ago

See also:

http://whosonfirst.mapzen.com.s3.amazonaws.com/mmdb/whosonfirst-city-20160111.mmdb.gz

This is not the default MaxMind data with additional WOF data but rather a pure-WOF mmdb file. For example:

$> ./lookup -db ~/Desktop/whosonfirst-city-20160111.mmdb -ip 8.8.8.4 |
python -mjson.tool
{
    "continent_id": 102191575,
    "country_id": 85633793,
    "disputed_id": 0,
    "geom_bbox": "-122.117724,37.354068,-122.044473,37.469887",
    "geom_latitude": 37.400493,
    "geom_longitude": -122.079536,
    "geoname_id": 5375480,
    "lbl_latitude": 37.413921,
    "lbl_longitude": -122.085078,
    "localadmin_id": 0,
    "locality_id": 85922355,
    "macroregion_id": 0,
    "mm_latitude": 37.386,
    "mm_longitude": -122.0838,
    "name": "Mountain View",
    "placetype": "locality",
    "region_id": 85688637,
    "whosonfirst_id": 85922355
}