Sha256: d2caff0ec527fba190e956981356fe4548a2d1cb6d400fa3f1db1538ff7d9a1b
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' describe GeoNamesAPI::NearestIntersection do describe '::find' do context 'given the latitude and longitude for a point inside the United States' do # Manhattan, Kansas, USA let(:latitude) { 39.191253 } let(:longitude) { -96.573737 } it 'returns the two street names of the nearest intersection' do response = described_class.find(latitude,longitude) expect(response.intersection["street1"]).to eq('Bertrand St') expect(response.intersection["street2"]).to eq('N 11th St') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geonames_api-0.1.6 | spec/geonames_api/nearest_intersection_spec.rb |
geonames_api-0.1.5 | spec/geonames_api/nearest_intersection_spec.rb |