featuretools.primitives.IsInGeoBox

class featuretools.primitives.IsInGeoBox(point1=(0, 0), point2=(0, 0))[source]

Determines if coordinates are inside a box defined by two corner coordinate points.

Description:

Coordinate values should be specified as (latitude, longitude) tuples. This primitive is unable to handle coordinates and boxes at the poles, and near +/- 180 degrees latitude.

Parameters
  • point1 (tuple(float, float)) – The coordinates of the first corner of the box. Defaults to (0, 0).

  • point2 (tuple(float, float)) – The coordinates of the diagonal corner of the box. Defaults to (0, 0).

Example

>>> is_in_geobox = IsInGeoBox((40.7128, -74.0060), (42.2436, -71.1677))
>>> is_in_geobox([(41.034, -72.254), (39.125, -87.345)]).tolist()
[True, False]
__init__(point1=(0, 0), point2=(0, 0))[source]

Methods

__init__([point1, point2])

generate_name(base_feature_names)

generate_names(base_feature_names)

get_args_string()

get_arguments()

get_description(input_column_descriptions[, ...])

get_filepath(filename)

get_function()

Attributes

base_of

base_of_exclude

commutative

compatibility

Additional compatible libraries

default_value

Default value this feature returns if no data found.

description_template

input_types

woodwork.ColumnSchema types of inputs

max_stack_depth

name

Name of the primitive

number_output_features

Number of columns in feature matrix associated with this feature

return_type

ColumnSchema type of return

uses_calc_time

uses_full_dataframe