{"id":18551977,"url":"https://github.com/baraja-core/geocoder","last_synced_at":"2025-04-09T22:31:43.522Z","repository":{"id":62491741,"uuid":"408550937","full_name":"baraja-core/geocoder","owner":"baraja-core","description":"Rewrite real address to geo coordinates.","archived":false,"fork":false,"pushed_at":"2022-09-08T13:37:07.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:04:39.097Z","etag":null,"topics":["address","cross","geo","geocoder","gps","rewrite"],"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/baraja-core.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":"2021-09-20T18:08:15.000Z","updated_at":"2023-10-22T22:58:37.000Z","dependencies_parsed_at":"2022-11-02T11:03:50.777Z","dependency_job_id":null,"html_url":"https://github.com/baraja-core/geocoder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"baraja-core/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fgeocoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fgeocoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fgeocoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fgeocoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baraja-core","download_url":"https://codeload.github.com/baraja-core/geocoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123666,"owners_count":21051509,"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":["address","cross","geo","geocoder","gps","rewrite"],"created_at":"2024-11-06T21:11:23.698Z","updated_at":"2025-04-09T22:31:43.196Z","avatar_url":"https://github.com/baraja-core.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple PHP Geocoder\n===================\n\nRewrite real address to geo coordinates.\n\nIdea\n----\n\nThe task of the address geocoding process is to rewrite a real address (which we get from the user or from another API) into real GPS coordinates. If the address is too general and represents a large area, we return the middle point in that area.\n\nThe process of transcribing an address to GPS is not always reliable and accurate. Data from many sources is used, but in some cases the transcription may fail or return an incorrect result.\n\nWhen using a geocoder, always validate the output coordinates against a preset area in your application.\n\nHow to use\n----------\n\nSimple create instance and call method:\n\n```php\n$geocoder = new \\Baraja\\Geocoder\\Geocoder();\n$coordinates = new $geocoder-\u003edecode('Náměstí Míru Praha');\n\necho $coordinates-\u003egetLatitude(); // 50.075075836281066\necho $coordinates-\u003egetLongitude(); // 14.437529917970826\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fgeocoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaraja-core%2Fgeocoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fgeocoder/lists"}