Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Maptimize - ElasticSearch

Maptimize - ElasticSearch

Presentation of maptimize at ElasticSearch meetup in Paris - May 22th, 2013

sgruhier

June 19, 2013
Tweet

More Decks by sgruhier

Other Decks in Technology

Transcript

  1. Maptimize Clustering engine pour carte en ligne SASS Filtrage/Recherche en

    temps-réel Supporte Google Map, OpenStreetMap (leaflet.js), Bing Maps, ... Wednesday, June 19, 13
  2. Idée originale Avantages Rapidité de développement Test en live sur

    un site => Feedback des utilisateurs Inconvénients Nb points très limités (~ 5000 points) Pas DU TOUT scalable Wednesday, June 19, 13
  3. Maptimize V1 Avantages Implémentation simple SASS Inconvénients Nb points limités

    (~ 50000 points) Performance linéaire en fonction du nombre de points Bulk update Wednesday, June 19, 13
  4. Maptimize V2 Avantages Performance “scalabilité” WAR: installable chez le client

    Inconvénients Nb points encore limités (~ 300000 points) Bulk update Wednesday, June 19, 13
  5. Maptimize V3 maptimize mapping curl  -­‐XPUT  localhost:9200/maptitest/tweet/_mapping  -­‐d  '  

         {                "tweet":  {                        "properties":  {                                "coordinates":  {                                        "type"  :  "multi_field",                                        "fields"  :  {                                                "coordinates"  :  {"type"  :  "geo_point"},                                                "maptimize"  :      {"type"  :  "maptimize"  }                                        }                                }                        }                }        } ' curl  -­‐XPUT  localhost:9200/maptitest/tweet/1  -­‐d  '        {                "coordinates":  "37.41009903,-­‐5.99576998",                "text":  "Another  tweet  in  the  wall!"        } ' Wednesday, June 19, 13
  6. Maptimize V3 response {    "points":[        {

               "lat":30.080961775000002,            "lng":-­‐85.630064475,            "count":4,            "sw_lat":30.0334303,            "sw_lng":-­‐85.8917727,            "ne_lat":30.2235562,            "ne_lng":-­‐85.5428284        },        {            "lat":30.352137,            "lng":-­‐87.281595,            "count":1        },        {            "lat":30.357684222736708,            "lng":-­‐86.19574103569968,            "count":972,            "sw_lat":30.2568577,            "sw_lng":-­‐86.3207397,            "ne_lat":30.422594,            "ne_lng":-­‐85.9100089        },        {            "lat":30.4591621,            "lng":-­‐84.3590897,            "count":1        }    ],    "success":true } Wednesday, June 19, 13
  7. Maptimize V3 Avantages Performance (non linéaire en fonction du nombre

    de points) scalabilité Limite du nombre de points: inconnue :) Ajouts de fonctionnalités (facets, recherche/filtrage avancé) Wednesday, June 19, 13
  8. Maptimize V3 Avantages API REST temps-réel ... Contraintes Certaines fonctionnalités

    de la v2 difficiles à implémenter Maitriser le développement de plugins Wednesday, June 19, 13