1 module OsmCommunityIndex
4 def self.community_index
5 @community_index ||= community_index_from_json
8 def self.community_index_from_json
9 json_file = Rails.root.join("node_modules/osm-community-index/dist/resources.json")
10 JSON.parse(File.read(json_file))