{"id":25927818,"url":"https://github.com/sankeer28/toronto-street-api","last_synced_at":"2026-05-17T01:44:48.267Z","repository":{"id":279136280,"uuid":"937772437","full_name":"sankeer28/toronto-street-api","owner":"sankeer28","description":"REST API that returns the nearest street name for any given coordinate in the Greater Toronto Area (GTA) using Haversine formula to measure distance from coordinate to nearest street. ","archived":false,"fork":false,"pushed_at":"2025-03-03T01:51:32.000Z","size":14370,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T00:49:21.909Z","etag":null,"topics":["api","coordinates","longitude-and-latitude","openstreetmap","rest-api","toronto"],"latest_commit_sha":null,"homepage":"https://toronto-street-api.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sankeer28.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-23T21:15:58.000Z","updated_at":"2025-03-29T14:45:24.000Z","dependencies_parsed_at":"2025-03-03T02:24:49.880Z","dependency_job_id":null,"html_url":"https://github.com/sankeer28/toronto-street-api","commit_stats":null,"previous_names":["sankeer28/toronto-street-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sankeer28/toronto-street-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2Ftoronto-street-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2Ftoronto-street-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2Ftoronto-street-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2Ftoronto-street-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sankeer28","download_url":"https://codeload.github.com/sankeer28/toronto-street-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeer28%2Ftoronto-street-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33124933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"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":["api","coordinates","longitude-and-latitude","openstreetmap","rest-api","toronto"],"created_at":"2025-03-03T21:10:40.522Z","updated_at":"2026-05-17T01:44:48.251Z","avatar_url":"https://github.com/sankeer28.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toronto Street API\n\nSimple REST API that returns the nearest street name for any given coordinate in the Greater Toronto Area (GTA). Has data of 38256 streets/paths/trails/roads.\nMade this to replace [Nominatim API](https://nominatim.org) as it has rate limits. Uses Haversine formula to measure distances. Finds the shortest distance from the given point to the closest street segment. If multiple streets are nearby, it sorts them and selects the closest one.\n## API Usage\n\n```http\nGET /api?lat={latitude}\u0026lng={longitude}\n```\n\n### Example Request\n```http\nGET https://toronto-street-api.vercel.app/api?lat=43.5935064119175\u0026lng=-79.52954035201256\n```\n\n### Example Response\n```json\n{\"street\":\"Thirty First Street\",\"coordinates\":{\"latitude\":43.5935064119175,\"longitude\":-79.52954035201256},\"totalStreets\":31871}\n```\n\n### Boundaries\nExactly covers Greater Toronto Area with these corner points:\n- South-West: 43.57455720071925, -79.56596680728272 (Mississauga)\n- North-West: 43.80542322864151, -79.68545466957553 (Brampton)\n- North-East: 43.99894444958437, -79.03600299452471 (Markham)\n- South-East: 43.63890648992304, -78.93970983491215 (Pickering)\n![image](https://github.com/user-attachments/assets/b9f64101-4c2f-4392-8f4b-fb8462e86866)\n![image](https://github.com/user-attachments/assets/dff55d17-8083-4cba-aebe-3e23174de850)\n\n## Features\n- High precision street detection (within 15 meters)\n- Includes all road types (streets, trails, avenues, etc.)\n- Fast response times (\u003c100ms)\n- No rate limits\n- Comprehensive GTA coverage\n  \n## Local Development\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/sankeer28/toronto-street-api.git\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Download street data (need to be manually run every few months):\n```bash\nnpm run download-streets\n```\n\n4. Start the development server:\n```bash\nnpm run dev\n```\n\n5. Test the API:\n```http\nhttp://localhost:3000/api?lat=43.6532\u0026lng=-79.3832\n```\n\n## Data Source\n\nStreet data is sourced from OpenStreetMap using the Overpass API. The data includes all named streets, roads, and pathways in the GTA region including:\n- Toronto\n- Mississauga\n- Brampton\n- Markham\n- Richmond Hill\n- Vaughan\n- Pickering\n- Ajax\n- Whitby\n- Oshawa\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeer28%2Ftoronto-street-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsankeer28%2Ftoronto-street-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeer28%2Ftoronto-street-api/lists"}