Module: NYCGeoClient::Client::Blockface
- Included in:
- NYCGeoClient::Client
- Defined in:
- lib/nyc_geo_client/client/blockface.rb
Overview
Defines methods related to branches
Instance Method Summary collapse
-
#blockface(on_street, cross_street_one, cross_street_two, borough, extra = {}) ⇒ Hashie::Mash
Returns information about a segment defined by an on street between two cross-streets.
Instance Method Details
#blockface(on_street, cross_street_one, cross_street_two, borough, extra = {}) ⇒ Hashie::Mash
Returns information about a segment defined by an on street between two cross-streets.
20 21 22 23 24 25 26 27 28 |
# File 'lib/nyc_geo_client/client/blockface.rb', line 20 def blockface(on_street, cross_street_one, cross_street_two, borough, extra = {}) = { onStreet: on_street, crossStreetOne: cross_street_one, crossStreetTwo: cross_street_two, borough: borough }.merge(extra) get(blockface_path, ) end |