{"id":19999667,"url":"https://github.com/adamico/leaflet-rails-example","last_synced_at":"2025-05-04T14:32:04.197Z","repository":{"id":8768234,"uuid":"10453024","full_name":"adamico/leaflet-rails-example","owner":"adamico","description":"example app for leaflet embed in rails A","archived":false,"fork":false,"pushed_at":"2013-06-03T11:45:32.000Z","size":135,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-18T08:18:21.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/adamico.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}},"created_at":"2013-06-03T11:17:02.000Z","updated_at":"2020-08-23T05:05:47.000Z","dependencies_parsed_at":"2022-09-19T05:12:06.377Z","dependency_job_id":null,"html_url":"https://github.com/adamico/leaflet-rails-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamico%2Fleaflet-rails-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamico%2Fleaflet-rails-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamico%2Fleaflet-rails-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamico%2Fleaflet-rails-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamico","download_url":"https://codeload.github.com/adamico/leaflet-rails-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224393879,"owners_count":17303725,"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":[],"created_at":"2024-11-13T05:12:26.194Z","updated_at":"2024-11-13T05:12:26.740Z","avatar_url":"https://github.com/adamico.png","language":"Ruby","readme":"Example Rails 3 app originally created for the bounty https://bountify.co/embed-leaflet-in-a-rails-application\n\nIn order for the cloudmade integration to work you need to create an account and set the 'CLOUDMADE_API_KEY' environment variable.\n\nTo get the app started :\n\n```\n$ rake db:migrate\n$ rake db:seed\n$ rails s\n```\n\nThe markers for each Office instance get latitude and longitude values from the 'lat' and 'lon' columns of the offices table.\nThese columns get populated using the Cloudmade api by means of the corresponding ruby gem when the 'address1' attribute value changes.\nBy default the attributes used to get the geocoding coordinates are 'address1', 'city' and 'country' but they can be easily changed if needed by modifying the \"#geocode\" method in the office model.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamico%2Fleaflet-rails-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamico%2Fleaflet-rails-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamico%2Fleaflet-rails-example/lists"}