{"id":17957531,"url":"https://github.com/itinance/tinygeo","last_synced_at":"2025-04-03T17:32:17.779Z","repository":{"id":20363176,"uuid":"23638383","full_name":"itinance/tinygeo","owner":"itinance","description":"Provides classes for geographic calculations and related data structures","archived":false,"fork":false,"pushed_at":"2015-09-13T08:18:05.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T11:29:24.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/itinance.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":"2014-09-03T21:31:44.000Z","updated_at":"2021-04-09T08:02:39.000Z","dependencies_parsed_at":"2022-08-03T08:15:21.467Z","dependency_job_id":null,"html_url":"https://github.com/itinance/tinygeo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Ftinygeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Ftinygeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Ftinygeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itinance%2Ftinygeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itinance","download_url":"https://codeload.github.com/itinance/tinygeo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247046716,"owners_count":20874708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-29T10:55:30.402Z","updated_at":"2025-04-03T17:32:17.745Z","avatar_url":"https://github.com/itinance.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"tinygeo\n=======\n\nProvides classes for geographic calculations and related data structures.\n\nInstallation using composer:\n\n```\n    \"repositories\": [\n        {\n            \"type\": \"git\",\n            \"url\": \"git@github.com:itinance/tinygeo.git\"\n        }\n    ],\n    \"require\": {\n        \"itinance/tinygeo\": \"dev-master\"\n    },\n```\n\nUsage examples:\n\n```\n$p1 = new GeoPoint(\"48°07'31.5''\", \"011°32'23''\");\necho $p1-\u003elat . ', ' . $p1-\u003elng;\n```\n\n```\n$p1 = new GeoPoint(48.346611, 11.578393);\necho $p1-\u003egetStringAsDegreeMinuteSecond()\n```\n\n```\n$d = new GeoDegree(16, 19, 28.29);\n$this-\u003eassertEquals(16.324525, $d-\u003etoDecimals());\n```\n\n```\n$d = GeoDegree::fromString(\"48°08'10''\");\n$this-\u003eassertEquals( 48, $d-\u003edegrees );\n$this-\u003eassertEquals( 8, $d-\u003eminutes );\n$this-\u003eassertEquals( 10, $d-\u003eseconds);\n```\n\n```\n$p1 = new GeoPoint(48.135993, 11.539721);\n$destination = GeoCalculation::movePointUpwards($p1, 1.200);\n```\n\n```\n$center = new GeoPoint(48.135993, 11.539721);\n\n$box = GeoCalculation::getBoundingBox($center, 0.7); // 700m\n$this-\u003eassertEquals( new GeoPoint( 48.1404443, 11.54637187 ),  $box-\u003egetNorthEast(), '', 0.001 );\n$this-\u003eassertEquals( new GeoPoint( 48.1404443, 11.53307013 ),  $box-\u003egetNorthWest(), '', 0.001 );\n$this-\u003eassertEquals( new GeoPoint( 48.13154, 11.53307013 ),  $box-\u003egetSouthWest(), '', 0.001 );\n$this-\u003eassertEquals( new GeoPoint( 48.13154, 11.54637187 ),  $box-\u003egetSouthEast(), '', 0.001 );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Ftinygeo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinance%2Ftinygeo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinance%2Ftinygeo/lists"}