Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Minimum Google Street View Navigation through all Streets in a Zip-Code

For a given zipcode, how can i retrieve all or sequential streetview images with minimum repetition through the zipcode?

For example, for Lafayette county in Missouri, how can I go through all the streets within the polygon once with minimum repetition. How can I do this in an automated manner. Right now, I just retrieve streetview images given a origin and destination as below. It will be tedious to have to manually list streets, obtain start/end destinations, retrieve streetview images and then eliminate duplicates.

function pullPanoImages() {
    if (m_aVertices.length) {
        var vertex = m_aVertices.shift();
        m_sPanoClient.getPanoramaByLocation(vertex, m_iSensitivity, function (panoData, status) {
            if (status === "OK") {
                m_fOnPanoLoaded({
                    panoData: panoData,
                    panoUrl: [
                        "https://maps.googleapis.com/maps/api/streetview?size=640x640",
                        "pano=" + panoData.location.pano,
                        "fov=90",
                        "heading=" + bearingTo(vertex, m_aVertices[0] || vertex),
                        "pitch=0",
                        "key=" + m_sApiKey
                    ].join("&")
                });
                setTimeout(function() {
                    pullPanoImages();
                }, m_iSpeed);
            } else {
                m_fOnError(new Error(status));
            }
        });
    } else {
        m_fOnComplete();
    }
}

The only option I am thinking of is to download all the street names in a zipcode through a kml shape file, obtain start/destination for each street and run navigation though all streets from start to destination (this does not seem reasonable or automateable).

Comments