{"id":20870266,"url":"https://github.com/mbd-codex/location-info","last_synced_at":"2026-05-05T19:31:39.789Z","repository":{"id":62521660,"uuid":"260547524","full_name":"mbd-codex/location-info","owner":"mbd-codex","description":"This is a tool to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).","archived":false,"fork":false,"pushed_at":"2020-05-01T21:09:24.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-19T19:44:07.307Z","etag":null,"topics":["address","composer","latitude-and-longitude","location","openstreetmap","osm","wordpress"],"latest_commit_sha":null,"homepage":"https://github.com/mbd-codex/location-info","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/mbd-codex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-01T20:00:52.000Z","updated_at":"2022-03-18T11:16:15.000Z","dependencies_parsed_at":"2022-11-02T13:46:30.271Z","dependency_job_id":null,"html_url":"https://github.com/mbd-codex/location-info","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mbd-codex/location-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbd-codex%2Flocation-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbd-codex%2Flocation-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbd-codex%2Flocation-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbd-codex%2Flocation-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbd-codex","download_url":"https://codeload.github.com/mbd-codex/location-info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbd-codex%2Flocation-info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["address","composer","latitude-and-longitude","location","openstreetmap","osm","wordpress"],"created_at":"2024-11-18T06:17:56.571Z","updated_at":"2026-05-05T19:31:39.771Z","avatar_url":"https://github.com/mbd-codex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Location Info\n[![Latest Stable Version](https://poser.pugx.org/madebydaniz/location-info/v/stable)](https://packagist.org/packages/madebydaniz/location-info)\n[![Total Downloads](https://poser.pugx.org/madebydaniz/location-info/downloads)](https://packagist.org/packages/madebydaniz/location-info)\n[![License](https://poser.pugx.org/madebydaniz/location-info/license)](https://packagist.org/packages/madebydaniz/location-info)\n\nThis is a tool to search OSM data by name and address and to generate synthetic addresses of OSM points (reverse geocoding).\n\n\n\n## Requirements\n\n- [PHP](https://secure.php.net/manual/en/install.php) \u003e= 7.1\n- [Composer](https://getcomposer.org/download/)\n- [curl](https://packagist.org/packages/curl/curl)\n\n## Installation\n\nInstall via Composer:\n\n```bash\n$ composer require madebydaniz/location-info\n```\n\n## Usage\nReference : https://nominatim.org/release-docs/develop/api/Search/\n```php\n$address = \"Stephansplatz 2, 1010, Wien\";\n$data = LocationInfo::getInstance()::search($address);\nprint_r($data);\n\n#output\nArray\n(\n    [place_id] =\u003e 4868677\n    [licence] =\u003e Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright\n    [osm_type] =\u003e node\n    [osm_id] =\u003e 567056993\n    [boundingbox] =\u003e Array\n        (\n            [0] =\u003e 48.2080963\n            [1] =\u003e 48.2081963\n            [2] =\u003e 16.3722742\n            [3] =\u003e 16.3723742\n        )\n\n    [lat] =\u003e 48.2081463\n    [lon] =\u003e 16.3723242\n    [display_name] =\u003e 2, Stephansplatz, Stubenviertel, KG Innere Stadt, Innere Stadt, Wien, 1010, Österreich\n    [class] =\u003e place\n    [type] =\u003e house\n    [importance] =\u003e 0.441\n)\n```\n\n#TODO : return format\n- [ ] html\n- [ ] xml\n- [x] json\n- [x] jsonv2\n- [ ] geojson\n- [ ] geocodejson\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbd-codex%2Flocation-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbd-codex%2Flocation-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbd-codex%2Flocation-info/lists"}