Skip to content

Commit ba7d7e2

Browse files
committed
Add comment-out codes for prototype #6 #11
1 parent 5335ece commit ba7d7e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

upsert_geojson.rb

+10
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
marker_data = YAML.unsafe_load_file(MARKERS_YAML, symbolize_names: true)
3535
features = []
3636
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+
3741
marker_data.each do |marker|
3842
next if marker[:title].chomp.eql? '404_Not_Found'
3943

@@ -45,6 +49,12 @@
4549
<small>(#{marker[:date]})</small>
4650
DESCRIPTION
4751

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+
4858
features << {
4959
type: "Feature",
5060
geometry: {

0 commit comments

Comments
 (0)