{"id":20397199,"url":"https://github.com/litstack/location","last_synced_at":"2026-01-31T13:34:09.523Z","repository":{"id":239740129,"uuid":"331236837","full_name":"litstack/location","owner":"litstack","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-14T13:56:43.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T10:05:11.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-01-20T08:11:38.000Z","updated_at":"2024-05-14T09:07:37.000Z","dependencies_parsed_at":"2024-05-14T11:28:40.399Z","dependency_job_id":"890f46b5-c96b-446b-9239-085b4976768d","html_url":"https://github.com/litstack/location","commit_stats":null,"previous_names":["litstack/location"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/litstack/location","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litstack%2Flocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litstack%2Flocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litstack%2Flocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litstack%2Flocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litstack","download_url":"https://codeload.github.com/litstack/location/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litstack%2Flocation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28944781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-15T04:12:25.777Z","updated_at":"2026-01-31T13:34:09.470Z","avatar_url":"https://github.com/litstack.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Location\n\nA field that stores the `lat`and `lng` values as well as further information of a place you can search like on google maps.\n\n## Setup\n\nPrepare your model with two float colums, e.g. `lat` and `lng` and set them fillable.\n\n```php\n$table-\u003efloat('lat', 12, 9);\n$table-\u003efloat('lng', 12, 9);\n```\n\nIn order to use the location field you need an Google-API-Key with the following APIs activated:\n\n-   Maps JavaScript\n-   Places API\n\nAdd this to your `lit` config.\n\n```php\n'location' =\u003e [\n    'google_api_key' =\u003e env('GOOGLE_API_KEY'),\n],\n```\n\nNow the map field can be used like this:\n\n```php\n$form-\u003emap('lat', 'lng');\n```\n\nYou can save further information from the Places-API like this:\n\n```php\n$form-\u003emap('lat', 'lng', [\n    'formatted_address' =\u003e 'address', // saves the formatted_address attribute in the address column of your model\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitstack%2Flocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitstack%2Flocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitstack%2Flocation/lists"}