class TokyoMetro::Api::MlitRailwayLine

国土交通省国土数値情報-鉄道::路線 を扱うクラス @see developer.tokyometroapp.jp/documents/mlit#mlit:Railway-国土交通省国土数値情報-鉄道::路線 @note mlit:railwayNameは、国土交通省国土数値地図に記載されている線名である。 @note ここでの ug:region が指し示すものは、GeoJSON 取得用のURLとなる。

Public Class Methods

get_geo_test( http_client , geo_long , geo_lat , radius ) click to toggle source

データ取得のテスト @return [nil]

# File lib/tokyo_metro/api/mlit_railway_line.rb, line 13
def self.get_geo_test( http_client , geo_long , geo_lat , radius )
  puts "● #{ get_test_title } (geo)"
  result = get_geo( http_client , geo_long , geo_lat , radius , to_inspect: true , parse_json: true , generate_instance: true )
  puts "(#{ result.length })"
  result.sort_by( &:mlit_operator_name ).each do | item |
    puts item.to_strf
    puts "" * 2
  end
end

Private Class Methods

get_test_title() click to toggle source
# File lib/tokyo_metro/api/mlit_railway_line.rb, line 29
def get_test_title
  "Mlit Railway Line"
end