File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13# Plus+Codes is a Ruby implementation of Google Open Location Code (Plus Codes).
24#
35# @author We-Ming Wu
46module PlusCodes
57 # The character set used to encode coordinates.
6- CODE_ALPHABET = '23456789CFGHJMPQRVWX' . freeze
8+ CODE_ALPHABET = '23456789CFGHJMPQRVWX'
79
810 # The character used to pad a code
9- PADDING = '0' . freeze
11+ PADDING = '0'
1012
1113 # A separator used to separate the code into two parts.
12- SEPARATOR = '+' . freeze
14+ SEPARATOR = '+'
1315
1416 # The max number of characters can be placed before the separator.
1517 SEPARATOR_POSITION = 8
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13module PlusCodes
24 # [CodeArea] contains coordinates of a decoded Open Location Code(Plus+Codes).
35 # The coordinates include the latitude and longitude of the lower left and
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require_relative '../plus_codes'
24require_relative '../plus_codes/code_area'
35
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13lib = File . expand_path ( 'lib' , __dir__ )
24$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
35require 'date'
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require 'test/unit'
24require_relative '../lib/plus_codes/open_location_code'
35
You can’t perform that action at this time.
0 commit comments