{"id":15679733,"url":"https://github.com/rossta/map_ready","last_synced_at":"2025-07-21T06:32:20.129Z","repository":{"id":580179,"uuid":"213137","full_name":"rossta/map_ready","owner":"rossta","description":"A Rails plugin to convert models into map ready marker objects. Includes support for marker clustering and offsetting. Requires the geokit and geokit-rails.","archived":false,"fork":false,"pushed_at":"2011-01-04T20:06:50.000Z","size":149,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-14T11:42:52.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.weplay.com","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/rossta.png","metadata":{"files":{"readme":"README","changelog":"History.txt","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":"2009-05-29T03:51:18.000Z","updated_at":"2013-10-08T19:13:23.000Z","dependencies_parsed_at":"2022-07-07T14:21:19.288Z","dependency_job_id":null,"html_url":"https://github.com/rossta/map_ready","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rossta/map_ready","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fmap_ready","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fmap_ready/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fmap_ready/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fmap_ready/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rossta","download_url":"https://codeload.github.com/rossta/map_ready/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Fmap_ready/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253582,"owners_count":23900052,"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-10-03T16:35:03.406Z","updated_at":"2025-07-21T06:32:20.109Z","avatar_url":"https://github.com/rossta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"MapReady\n========\n\nA Rails plugin to convert models into map ready marker objects. Includes support for marker clustering and offsetting. Requires the geokit and geokit-rails.\n\nThe plugin provides several strategies for building map marker objects from mappable ActiveRecord models. Currently, a mappable ActiveRecord model is one that \"acts_as_mappable\" as defined in the geokit-rails plugin (dependency). The strategies include:\n 1. one-to-one conversion (simple), \n 2. grouping by proximity (clustered), \n 3. offsetting by location (offset).\n\nDependencies\n============\n\nCurrently map_ready depends on the geokit gem and the geokit-rails plugin\n\ngeokit\n\n- http://github.com/andre/geokit-gem/tree/master\n\ngeokit-rails\n\n- http://github.com/andre/geokit-rails/tree/master\n\n\nExample\n=======\n\nSetup\n\nSay for your Rails app you're building a map of all the best burger joints in your area. To make your burger joints map ready:\n\n1. Use geokit/geokit-rails to provide geolocations (lat, lng) and add 'acts_as_mappable' to the class definition.\n2. Add 'acts_as_map_marker' to the class definition. This declaration provides the interface for the marker builders to translate your mappable class to map markers.\n\nclass BurgerJoint \u003c ActiveRecord::Base\n  acts_as_mappable\n  acts_as_map_marker\nend\n\nUsage\n\nSimple\n  markers = MapReady::MarkerBuilder::Simple.new(burger_joints).create_markers\n\nClustered\n  markers = MapReady::MarkerBuilder::Clusterable.new(burger_joints).create_markers\n\nOffset\n  markers = MapReady::MarkerBuilder::Offsetable.new(burger_joints).create_markers\n\n\nCopyright (c) 2009 Ross Kaffenberger, released under the MIT license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Fmap_ready","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frossta%2Fmap_ready","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Fmap_ready/lists"}