Back to Home

Hi, this is the new 2GIS that your friends are talking about / 2GIS company blog

2GIS · 2gis · 2gis api · leaflet.js · Github flow · node.js · fotorama · photor

Hi, this is the new 2GIS your friends are talking about.

    2GIS is completely updated . For the first time, we showed it on November 19 with truncated functionality and, albeit not critical, but bugs - after all, this was the stage of public beta testing.

    For five months we, of course, corrected and added a lot. Press releases have already been sent on the results. For example, about the fact that we have 400,000 photos and 500,000 reviews, or that we know the entries to almost one million organizations in the country.

    Unfortunately (and maybe fortunately), the format of the press release does not allow us to tell a little more details, a little be proud or admit our mistakes. Let's try to do it under the cut.

    To try

    Directory Design


    Every day 2GIS learns about the city and companies more and more information. At some point, we collected it so much that it became crowded in the old design. In the new one, we tried to make sure that the most important data for selection was immediately visible.

    Compare old and new cards.
    Closed
    It wasHas become

    Open
    It wasHas become


    The information is structured and with a slight change in size, the card has become more readable.

    Photo


    Now in 2GIS, indeed, almost 400,000 photographs. Some of them are from companies, and some are custom. Most of them are in the rubrics about catering. Less - in the section "Beauty and Health". This is due to the fact that 70% of new photos are now fashionable, but completely useless selfies. Masterpieces of modern art are ruthlessly “cut out” by moderators.

    A few technical points. In November, the photographs worked on Artem Polikarpov’s Photo Frame . The photo frame was good, but it looked more like a first-class Swiss knife, and we needed with one, but sharpened under us blade. Therefore, today they work on our Photor engine . If your tasks coincide with ours, then you can try it - it is open and laid out on a github.

    Search


    We ourselves are not satisfied with everything, but now we want to call it truly Urban. I mean, we find everything from popular names to cafes with Wi-Fi (but we don’t find Wi-Fi yet, but they’ll fix it).

    Of course, we can talk a lot about refinement filters. For example, the query “Eat” can be narrowed down to indecently accurate.



    Search for directions


    By car

    Firstly, it appeared in the online version , which means that now it is in all versions of 2GIS.
    Secondly, you can set intermediate points on the route. This is especially convenient if you need to slightly deviate from the direct route.

    By public transport

    Yes, we used to build a route exactly to the chosen point. But if our algorithms thought that walking faster than transport, then we could send a walk through the water.



    Now your shoes will remain dry.



    In the future we plan to connect the entrances to the routes and will bring it to the door handle.

    Ruler


    Outwardly, it is no different from what we announced in the old version. However, there is a slight difference. Troika (the old version has this name) worked for OpenLayers , and Quartet worked for LeafLet . Actually, that's why we rewrote it from scratch.

    Process


    If you really want to look flexible, young and beautiful, then you need to be one. For us, this meant that we needed to learn how to release several times a day. So the online team introduced Github Flow. If earlier the word “release” meant pain and coffee for us, now it is a simple “routine” process that does not require much effort. We will release what we want, and when necessary. He spoke in

    detail about Github Flow fobos at DUMP-2014 and a little later he will write about it separately.

    Framework and work on search engines


    We have been using javascript for a long time, and in fact 2GIS-online is a client to the 2GIS API that renders data in a browser. In the previous version of the project, we had to keep a separate, static version of 2GIS-online, which worked in PHP and served one purpose - indexing by search engines. In the new version, we completely switched to NodeJS. A single code is executed on the server and on the client. Thanks to this, our new version without any intermediate crutches is equally well displayed to both live users and different search engine robots.

    After the release in open source, we’ll tell you more about the framework.

    What's next?


    We would not be an IT company if after the release we had no technical debts or tickets for bugs. We rolled up our sleeves and continue to work. We welcome feedback.

    Read Next