{"id":15714111,"url":"https://github.com/forsaken1/activeadmin-latlng","last_synced_at":"2025-07-18T22:07:33.886Z","repository":{"id":50750120,"uuid":"53190093","full_name":"forsaken1/activeadmin-latlng","owner":"forsaken1","description":"Active Admin plugin for setting up latitude and longitude","archived":false,"fork":false,"pushed_at":"2020-06-05T14:52:40.000Z","size":851,"stargazers_count":37,"open_issues_count":15,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T22:16:40.867Z","etag":null,"topics":["activeadmin","admin-dashboard","google-maps","latitude-and-longitude","maps","plugin","yandex-maps"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/activeadmin_latlng","language":"Ruby","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/forsaken1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-05T07:47:22.000Z","updated_at":"2024-05-09T12:26:27.000Z","dependencies_parsed_at":"2022-09-01T09:02:52.669Z","dependency_job_id":null,"html_url":"https://github.com/forsaken1/activeadmin-latlng","commit_stats":null,"previous_names":["forsaken1/activeadmin_latlng"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/forsaken1/activeadmin-latlng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Factiveadmin-latlng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Factiveadmin-latlng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Factiveadmin-latlng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Factiveadmin-latlng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forsaken1","download_url":"https://codeload.github.com/forsaken1/activeadmin-latlng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Factiveadmin-latlng/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265844996,"owners_count":23837695,"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":["activeadmin","admin-dashboard","google-maps","latitude-and-longitude","maps","plugin","yandex-maps"],"created_at":"2024-10-03T21:34:47.732Z","updated_at":"2025-07-18T22:07:33.855Z","avatar_url":"https://github.com/forsaken1.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActiveadminLatlng\n\n[![Build Status](https://travis-ci.org/forsaken1/activeadmin-latlng.svg?branch=master)](https://travis-ci.org/forsaken1/activeadmin-latlng)\n[![Code Climate](https://codeclimate.com/github/forsaken1/activeadmin-latlng.svg)](https://codeclimate.com/github/forsaken1/activeadmin-latlng)\n[![codecov](https://codecov.io/gh/forsaken1/activeadmin-latlng/branch/master/graph/badge.svg?token=)](https://codecov.io/gh/forsaken1/activeadmin-latlng)\n\nActive Admin latitude and longitude plugin\n\n![alt tag](https://image.ibb.co/n5vQ65/aa_latlng.jpg)\n\n\n\n## Getting started\n\n```ruby\ngem 'activeadmin_latlng'\n```\n\n```ruby\nform do |f|\n  f.inputs do\n    f.input :lat\n    f.input :lng\n    f.latlng # add this\n  end\n  f.actions\nend\n```\n\n\n\n## Settings\n\n* `lang` - language, `en` by default.\n\n* `map` - map provider, `google` by default. Available: `google`, `yandex`, `openstreetmap`.\n\n* `id_lat` and `id_lng` - identificator of latitude and longitude inputs. `\u003cmodel_name\u003e_lat` and `\u003cmodel_name\u003e_lng` by default.\n\n* `height` - map height in pixels, `400` by default.\n\n* `loading_map` - loading map library. `true` by default. Set to `false`, if map loaded in other place.\n\n* `api_key` - you can send api key to map. WARNING! This is unsafe method, better use ENV-variable.\n\n* `api_key_env` - you can send name of ENV-variable where storing API key for map.\n\n* `default_lat` - default latitude for placemark, Moscow latitude by default.\n\n* `default_lng` - default longitude for placemark, Moscow longitude by default.\n\n* `map_zoom` - default zoom for map, `12` by default.\n\n### Example\n\n```ruby\nform do |f|\n  f.inputs do\n    f.input :lat\n    f.input :lng\n    f.latlng lang: :ru, map: :yandex, height: 500, loading_map: false, api_key_env: 'GOOGLE_API_KEY'\n  end\n  f.actions\nend\n```\n\n\n\n## Contributors\n\nAlexey Krylov\n\n## License\n\nMIT License. Copyright 2018 Alexey Krylov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Factiveadmin-latlng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforsaken1%2Factiveadmin-latlng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Factiveadmin-latlng/lists"}