GithubHelp home page GithubHelp logo

tilelog's Introduction

Tilelog

Introduction

Analysis of map tile requests from parsed Fastly logs.

This project was developed as the final project for my Bachelor's degree in Telematics Engineering at UC3M through 2015.

Fastly log example

...
<134>2015-03-13T12:59:59Z cache-jfk1026 AshburnLogsS3[39806]: 199.99.94.99 "-" "-" Fri, 13 Mar 2015 12:59:59 GMT GET /username/api/v1/map/username@970195ad@7f0d1c82b45abde157e8c5ff03a2b9fe:1426236941662.6501//5/10/21.png HIT, HIT 200
<134>2015-03-13T12:59:59Z cache-ams4136 AshburnLogsS3[39806]: 99.99.99.99 "-" "-" Fri, 13 Mar 2015 12:59:59 GMT GET /username/api/v1/map/3c69ff53b5b708acc9cffe53ccd0038f:1426003808487.14/11/1052/673.png HIT, HIT 200
<134>2015-03-13T12:59:59Z cache-fra1234 AshburnLogsS3[39806]: 99.99.99.99 "-" "-" Fri, 13 Mar 2015 12:59:59 GMT GET /username/api/v1/map/1c213b3d1ed86e449dfaa2c9d9499da8:1425921407906.75/0/7/63/42.grid.json?callback=grid MISS, HIT 200
...

Map stats

The interactive.py script includes several functions to retrieve map stats once the log has been parsed. You can aggregate events by source IP address, get stats for the different zoom level requests or get the most requested tiles (for the whole tiles dataset or for a given map).

Output map

The draw_layergroup function allows to generate an image that will mark the requested tiles in the quadtree (according to the logs) over a given basemap for a specific map (identified by its layergroup ID).

As an example, check tmpmap_spM6Ib.png:

Attributions

tilelog's People

Contributors

iriberri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.