[openstreetmap/openstreetmap-website] Add Communities page (#3301)

Brian DeRocher notifications at github.com
Fri Jun 24 03:30:33 UTC 2022


@openbrian commented on this pull request.



> @@ -0,0 +1,12 @@
+module OsmCommunityIndex
+  require "yaml"
+
+  def self.community_index
+    @community_index ||= community_index_from_json
+  end
+
+  def self.community_index_from_json
+    json_file = Rails.root.join("node_modules/osm-community-index/dist/resources.json")

Is this the best way to link the dataset?  Does OCI have an API we could call?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3301#pullrequestreview-1017944534
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3301/review/1017944534 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220623/8dad8aa5/attachment.htm>


More information about the rails-dev mailing list