Skip to content

Commit

Permalink
Add comment-out codes for prototype #6 #11
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Feb 10, 2023
1 parent 5335ece commit ba7d7e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions upsert_geojson.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
marker_data = YAML.unsafe_load_file(MARKERS_YAML, symbolize_names: true)
features = []
description = ''

# Prototype: https://github.com/yasslab/localmap.jp/pull/11
#dups_coords = marker_data.map{|m| [m[:lng], m[:lat]] }.tally.select{|k,v| v > 1}

marker_data.each do |marker|
next if marker[:title].chomp.eql? '404_Not_Found'

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

# Prototype: https://github.com/yasslab/localmap.jp/pull/11
#if not dups_coords[[marker[:lng], marker[:lat]]].nil?
# marker[:lng] = (marker[:lng].floor(4).to_s + rand(100).to_s).to_f
# marker[:lat] = (marker[:lat].floor(4).to_s + rand(100).to_s).to_f
#end

features << {
type: "Feature",
geometry: {
Expand Down

0 comments on commit ba7d7e2

Please sign in to comment.