Class: Georeference::GoogleMap

Inherits:
Georeference
  • Object
show all
Defined in:
app/models/georeference/google_map.rb

Overview

A Georeference derived from a Google map.

Instance Attribute Summary

Attributes inherited from Georeference

#api_request, #collecting_event_id, #error_depth, #error_geographic_item_id, #error_radius, #geographic_item_id, #iframe_response, #is_median_z, #is_public, #is_undefined_z, #no_cached, #position, #project_id, #type

Instance Method Summary (collapse)

Methods inherited from Georeference

#add_err_geo_item_inside_err_radius, #add_error_depth, #add_error_geo_item_inside_area, #add_error_radius, #add_error_radius_inside_area, #add_obj_inside_area, #add_obj_inside_err_geo_item, #add_obj_inside_err_radius, batch_create_from_georeference_matcher, #check_err_geo_item_inside_err_radius, #check_error_geo_item_inside_area, #check_error_radius_inside_area, #check_obj_inside_area, #check_obj_inside_err_geo_item, #check_obj_inside_err_radius, #error_box, #error_radius_buffer_polygon, filter, generate_download, #geographic_item_present_if_error_radius_provided, #heading, #latitude, #longitude, #method_name, #set_cached, #to_geo_json_feature, #to_simple_json_feature, with_geographic_area, with_locality, with_locality_as, with_locality_like, within_radius_of_item

Methods included from Housekeeping

#has_polymorphic_relationship?

Instance Method Details

- (Object) make_geographic_item(geo_type, shape)

coordinates is an Array of Stings of [longitude, latitude]



6
7
8
# File 'app/models/georeference/google_map.rb', line 6

def make_geographic_item(geo_type, shape)
  # self.geographic_item = GeographicItem.new(point: Gis::FACTORY.point(coordinates[0], coordinates[1]))
end