{"id":36266383,"url":"https://github.com/janu-software/gps","last_synced_at":"2026-01-11T08:04:13.022Z","repository":{"id":57058944,"uuid":"186960734","full_name":"janu-software/gps","owner":"janu-software","description":"Tool for working with GPS points.","archived":false,"fork":false,"pushed_at":"2025-06-03T10:53:44.000Z","size":94,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T10:45:11.699Z","etag":null,"topics":["coordinates","distance","geolocation","gps","nette","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janu-software.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-05-16T05:55:53.000Z","updated_at":"2025-06-03T10:52:23.000Z","dependencies_parsed_at":"2022-08-24T14:53:24.471Z","dependency_job_id":null,"html_url":"https://github.com/janu-software/gps","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/janu-software/gps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Fgps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Fgps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Fgps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Fgps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janu-software","download_url":"https://codeload.github.com/janu-software/gps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Fgps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28297988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"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","distance","geolocation","gps","nette","php"],"created_at":"2026-01-11T08:04:12.436Z","updated_at":"2026-01-11T08:04:13.014Z","avatar_url":"https://github.com/janu-software.png","language":"PHP","readme":"# GPS\nGPS Point with useful detection and method.\n\n[![Composer](https://github.com/janu-software/gps/actions/workflows/composer.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/composer.yml)\n[![Code style](https://github.com/janu-software/gps/actions/workflows/code_style.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/code_style.yml)\n[![Tester](https://github.com/janu-software/gps/actions/workflows/tester.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/tester.yml)\n[![PhpStan](https://github.com/janu-software/gps/actions/workflows/static_analysis.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/static_analysis.yml)\n\n[![Latest Stable Version](https://poser.pugx.org/stanislav-janu/gps/v/stable)](https://packagist.org/packages/stanislav-janu/gps)\n[![Total Downloads](https://poser.pugx.org/stanislav-janu/gps/downloads)](https://packagist.org/packages/stanislav-janu/gps)\n[![License](https://poser.pugx.org/stanislav-janu/gps/license)](https://packagist.org/packages/stanislav-janu/gps)\n[![Coverage Status](https://coveralls.io/repos/github/janu-software/gps/badge.svg?branch=master)](https://coveralls.io/github/janu-software/gps?branch=master)\n\n## Installation\n\n    composer require stanislav-janu/gps\n\n## Compatibility\n\n| Version | PHP  | Nette Utils |\n|---------|------|-------------|\n| 4.0     | ^8.3 | ^4.0        |\n| 3.0     | ^8.0 | ^4.0        |\n| 2.1     | ^8.0 | ^3.2        |\n| 2.0     | ^8.0 | ^3.0        |\n| 1.1     | ^7.1 | ^2.4 ^3.0   |\n| 1.0     | ^7.0 | ^2.4        |\n\n## Usage\n\n```php\nuse JanuSoftware\\GPS\\GpsPoint;\nuse JanuSoftware\\GPS\\GpsPointException;\n\ntry {\n    $point = GpsPoint::from('49°3\\'6.630\"N, 14°26\\'7.763\"E');\n    echo $point; // 49.0518417, 14.4354897\n    echo $point-\u003elat; // 49.0518417\n    echo $point-\u003elng; // 14.4354897\n} catch (GpsPointException $exception) {\n    echo $exception-\u003egetMessage();\n}\n```\n\n### Accepted formats:\n* OpenStreetMap URL\n* Google Maps URL\n* Mapy.com URL\n* 49°3'6.630\"N, 14°26'7.763\"E\n* N 49°3.11050', E 14°26.12938'\n* 49.0518417N, 14.4354897E\n* 49.0518417N,14.4354897E\n* 49.0518417, 14.4354897\n* 49.0518417,14.4354897\n* 49.0518417 14.4354897\n* -47.338388,-0.990228\n* -47.338388 -0.990228\n\n### Distance\n```php\n$point1 = GpsPoint::from('some coordinates');\n$point2 = GpsPoint::from('some coordinates');\n$distance =  $point1-\u003edistanceTo($point2); // distance in meters\n```\n\n### Google Maps Distance Matrix\n```php\n...\n$distance = $point1-\u003edistanceTo($point2, 'Google Maps API key'); // distance in meters\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanu-software%2Fgps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanu-software%2Fgps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanu-software%2Fgps/lists"}