We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5335ece commit ba7d7e2Copy full SHA for ba7d7e2
upsert_geojson.rb
@@ -34,6 +34,10 @@
34
marker_data = YAML.unsafe_load_file(MARKERS_YAML, symbolize_names: true)
35
features = []
36
description = ''
37
+
38
+# Prototype: https://github.com/yasslab/localmap.jp/pull/11
39
+#dups_coords = marker_data.map{|m| [m[:lng], m[:lat]] }.tally.select{|k,v| v > 1}
40
41
marker_data.each do |marker|
42
next if marker[:title].chomp.eql? '404_Not_Found'
43
@@ -45,6 +49,12 @@
45
49
<small>(#{marker[:date]})</small>
46
50
DESCRIPTION
47
51
52
+ # Prototype: https://github.com/yasslab/localmap.jp/pull/11
53
+ #if not dups_coords[[marker[:lng], marker[:lat]]].nil?
54
+ # marker[:lng] = (marker[:lng].floor(4).to_s + rand(100).to_s).to_f
55
+ # marker[:lat] = (marker[:lat].floor(4).to_s + rand(100).to_s).to_f
56
+ #end
57
48
58
features << {
59
type: "Feature",
60
geometry: {
0 commit comments