Home > Open Data, Progetti, Web Mapping > Street Image Compare: how to compare Google Street View and Mapillary in the same web page

Street Image Compare: how to compare Google Street View and Mapillary in the same web page

If you ask to a crowd of people if they use Google Street View, probably you’ll have a positive answer.

If you ask, to the same crowd of people if they use Mapillary, probably the positive answers will be much less.

Despite the fact Mapillary, with lower means and possibilities, is proposed as a “crowd” alternative to the BigG service, its diffusion is not yet widespread, although there are places on the Earth whose geo referred images are available on Mapillary platform and are not available on Google Street platform.

The question is: is it possible to know, for a specific place, if geo referred images are available in one of these platforms or in both and, in that case, compare them?

I became aware about this problem after seeing an email in an Italian forum on Geographic Free and Open Source software (Gfoss.it); I’ve searched on the web but not successful.

So, starting from the OSM Map Compare idea, I’ve decide to build something by myself and in this way Street Image Compare was created.

The application is very simple to use: for the same place you can compare Google Street View and Mapillary images (if they are both available) and “surf” on the streets having Google Maps and OpenStreetMap as reference.

The user can select the place in three different ways:

  • typing the place name
  • typing an address
  • typing the coordinates couple

The application use Google Maps geocoder as geocoding engine.

When you open the app on the web page with the two maps, Google Street View and Mapillary, you can navigate on the images using the little arrows that are shown on the images: on the maps you’ll see a marker that show your current position.

On the both maps, and using the right buttons, is also possible to click on a specific point where you want to positionate yourself.

It’s quite easy to show the availability of Google Street View images (you can move the pegman on the map and immediately are shown some blue lines that show where the Google Street View images are present or not …) ….

…. for Mapillary is available a button “ON/OFF Mapillary sequences” on OpenStreetMap that draws some blue lines which show where the Mapillary images are present or not.

So, now with Street Image Compare you can compare Google Street View and Mapillary for every place in the world !!!

Here you’re a user session little video


On a technical point of view these are the data / services used:

Beyond the mere comparison between two similar services (or, in any case with strong analogies …), that could be a coding exercise the application has some pratical use.

The pictures above are about Amatrice in Italy where last year, on August 24, 2016, there was a great earthquake: in this case you can compare places before and after the earthquake because after this event someone has captured and published the images on Mapillary platform.

You can move along Amatrice streets and the effect in really shocking !!

Starting from this example you can understand as, in case of natural events with big impacts, Mapillary, for its “crowd” nature, can be useful to capture images after the events and with Street Image Compare, you can immediately compare places before and after event. Very useful!

The application code is open source, available on GitHub, with MIT license.

Here you have some examples:

Note: thanks to Mariana Cristina Da Silva for the help on this post! 🙂

  1. 13 ottobre 2017 alle 3:03 PM

    Davvero molto interessante e utile. Ti volevo chiedere un dettaglio..come hai fatto a caricare tutte le foto di mapillary e non solo quelle inserite da te? ho guardato il tuo codice e mi trovo una sola chiave alla stringa //add mapillary.

    • 13 ottobre 2017 alle 8:52 PM

      Ciao Roberto,
      grazie degli apprezzamenti. Per i dettagli che mi hai chiesto ….. in realtà non ho “caricato” solo le mie immagini … uso “tutte” le immagini di Mapillary 🙂 …. Mapillary offre una libreria Javascript che permette di includere le immagini (in modo interattivo … ), in soluzioni di web mapping. Si chiama Mapillary JS e il suo riferimento è qui: http://blog.mapillary.com/update/2016/02/10/mapillary-js.html. Come vedrai ci sono un pò di esempi di utilizzo. La logica che utilizzo (semplificando di molto ….), è che, dato un punto sulle mappa (Google o OSM … ), posiziono in “viewer” Mapillary in corrispondenza delle coordinate del punto e quindi così vedi le immagini di Mapillary in quel punto (se ve ne sono … ). Il codice è comunque open source (con licenza MIT), e si trova qui https://github.com/cesaregerbino/StreetImageCompare

  2. 18 ottobre 2017 alle 2:22 PM

    Ciao Cesare, ho guardato il tuo codice ma essendo complesso e io in fase di studio..mi perdo qualcosa e non riesco a trovare su http://blog.mapillary.com/update/2016/02/10/mapillary-js.html il corrispondente codice per visuallizzare tutte le foto ma solo il seguente script

    var mly = new Mapillary.Viewer(


    con il quale inserisco le mie foto e sequenza di foto


  1. 11 agosto 2017 alle 5:54 PM
  2. 12 agosto 2017 alle 10:19 am


Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

%d blogger hanno fatto clic su Mi Piace per questo: