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