class OSRM::Response::LocateObject

:nodoc

Attributes

lat[R]
lon[R]

Private Instance Methods

cast() { || ... } click to toggle source
# File lib/osrm_api/response/locate_object.rb, line 11
def cast
  return unless @origin_response['status'] == 0
  @lat, @lon = @origin_response['mapped_coordinate']
  yield if block_given?
end