The New York Times has released a genuinely impressive visualization using Google Maps Street View to exhibit the 43,634 Properties inwards Detroit That Were on the Brink of Foreclosure This Year.
The mosaic of 43,634 pictures of Detroit houses is a really effective method to bring the sheer scale of the employment facing many Detroit homeowners.
It's possible that the New York Times gave the project of hunting out the Street View images of 43,634 properties to i of their interns. However it is to a greater extent than probable that the Times used the Google Maps API to geocode the addresses together with thence used the latitude together with longitudes to provide the static Street View images of the houses from the Street View Image API.
This isn't equally slow equally it sounds. If you lot merely piece of work inwards a latitude together with longitude into the Street View Image API you lot volition larn a random facing Street View from that location. To genuinely recollect the Street View epitome of the desired household you lot likewise demand the right heading to say the API which management to look.
Herein lies the problem. How create you lot rapidly recollect the right heading for 42,623 addresses to ensure that your Street View images are all facing inwards the right direction. One solution is to role the Google Maps API to detect the nearest available Street View to the address together with thence role the computeHeading (from: LatLng, to:LatLng) component to calculate the right heading (the ii LatLngs beingness your nearest available Street View latitude together with longitude together with the latitude together with longitude of your address).
I can't detect a practiced map that demonstrates this component inwards activity - inwards lodge to exhibit the Street View of a house. However this Point the Street View to a Marker demo uses the exact same primary to detect the right heading to exhibit a Street View looking towards a marking on a map.