{"id":43483079,"url":"https://github.com/mhulse/rand-street-view","last_synced_at":"2026-02-03T08:35:49.572Z","repository":{"id":42221280,"uuid":"169362027","full_name":"mhulse/rand-street-view","owner":"mhulse","description":"Random Google Street View.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:08:29.000Z","size":36,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T20:24:56.691Z","etag":null,"topics":["coordinates","geo","google","latitude","longitude","maps","random","streetview"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhulse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-06T05:59:15.000Z","updated_at":"2024-03-14T01:14:33.000Z","dependencies_parsed_at":"2022-08-12T09:50:58.004Z","dependency_job_id":null,"html_url":"https://github.com/mhulse/rand-street-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhulse/rand-street-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhulse%2Frand-street-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhulse%2Frand-street-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhulse%2Frand-street-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhulse%2Frand-street-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhulse","download_url":"https://codeload.github.com/mhulse/rand-street-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhulse%2Frand-street-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29038740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coordinates","geo","google","latitude","longitude","maps","random","streetview"],"created_at":"2026-02-03T08:35:49.517Z","updated_at":"2026-02-03T08:35:49.567Z","avatar_url":"https://github.com/mhulse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rand-street-view\n\nGet random Google Street View data.\n\n## In the real world\n\nSee [Kludgy](https://github.com/mhulse/kludgy)\n\n## Usage\n\nSee [`test.js`](test.js) for an example.\n\n## Options\n\noption | default | description\n--- | --- | ---\n`key` | | Required. **Your** [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key).\n`coords` | | Custom starting coordinates in the form of `{lattitude:0, longitude:0}`. If not defined, randomly picked coordinates will be used.\n`debug` | `false` | Among other things, this option pipes the browser process `stdout` and `stderr` into `process.stdout` and `process.stderr`.\n`radius` | `100` | Starting radius (in meters) from given `LatLng` to look for `StreetViewPanoramaData`.\n`multiplier` | `2` | Exponentially grows the radius by this number on each attempt.\n`attempts` | `1` | Number of times the script should grow the radius to search for a nearby panorama.\n`throttle` | `1` | Seconds to delay next API call to search for a panorama.\n`google` | `false` | Google-only pano data? Based on pano data copyright string.\n\n## Return value\n\n```js\n{\n  status: 'success',\n  message: 'Panorama found within 13 attempts.',\n  lat: 16.921235,\n  lng: 145.78154399999994,\n  id: 'CAoSLEFGMVFpcE1iNk1oUTBQN3BoZzVxVW1MMTNNMVdjTmI3aDdJcThjdE9EMWRo',\n  copyright: '© Paul Toogood',\n  link: 'https://maps.google.com/?q=16.921235,145.78154399999994\u0026ll=16.921235,145.78154399999994\u0026z=0',\n  tiles: {\n    centerHeading: 0,\n    originHeading: 0,\n    originPitch: 0,\n    tileSize: {\n      width: 512,\n      height: 512\n    },\n    worldSize: {\n      width: 10782,\n      height: 5391\n    }\n  }\n}\n```\n\n## Development notes\n\nNotes pertaining to module development … More information coming soon.\n\n### Debugging the Google Maps HTML\n\nSet `debug` to `true`. Next, locate `temp.html` and open it in Chrome and enable the Web Developer Toolbar.\n\n### Google Maps API key\n\nIn order to make testing easier, create a `key.js` file and add in your [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key):\n\n```js\n// Non-functional example key (you’ll have to generate your own):\nmodule.exports = 'AIzaSyDNuylDKnjnYY46zkORPEt2-g4HK3O6wnw';\n```\n\n## License\n\nCopyright © 2019 [Michael Hulse](http://mky.io).\n\nLicensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n\u003cimg src=\"https://github.global.ssl.fastly.net/images/icons/emoji/octocat.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhulse%2Frand-street-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhulse%2Frand-street-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhulse%2Frand-street-view/lists"}