fusetools.research_tools.Geography

class fusetools.research_tools.Geography[source]

Bases: object

Functions for dealing with Geographical tasks.

Methods

calculate_distance

Calculates the distance between two latitude/longitude coordinate pairs.

get_city_lat_lon

Calculates the latitude and longitude for a city.

walk_bike_transit_score

param addr

classmethod calculate_distance(lat_from, lon_from, lat_to, lon_to)[source]

Calculates the distance between two latitude/longitude coordinate pairs.

Parameters
  • lat_from – Latitude of the point being compared from.

  • lon_from – Longitude of the point being compared from.

  • lat_to – Latitude of the point being compared to.

  • lon_to – Longitude of the point being compared to.

Returns

Calculated distance.

classmethod get_city_lat_lon(city)[source]

Calculates the latitude and longitude for a city.

Parameters

city – Name of city.

Returns

Location (latitude and longitude).

classmethod walk_bike_transit_score(addr, lat, lon, api_key)[source]
Parameters
  • addr

  • lat

  • lon

  • api_key

Returns