This sends you the closest location to your lat/lon (defaults to within 50 miles). It includes a list of machines at the location.

Supported Formats

json

Params

Param name Description
lat
required

Latitude

Validations:

  • Must be a String

lon
required

Longitude

Validations:

  • Must be a String

by_type_id
optional

Location type ID to search by

Validations:

  • Must be a Integer

by_machine_id
optional

Machine ID to find in locations

Validations:

  • Must be a Integer

by_operator_id
optional

Operator ID to search by

Validations:

  • Must be a Integer

by_at_least_n_machines
optional

Only locations with N or more machines

Validations:

  • Must be a Integer

by_at_least_n_machines_type
optional

Only locations with N or more machines

Validations:

  • Must be a Integer

max_distance
optional

Closest location within “max_distance” miles, with a max of 500

Validations:

  • Must be a String

no_details
optional

Omit data that app does not need from pull

Validations:

  • Must be a Integer

send_all_within_distance
optional

Send all locations within max_distance param, or 50 miles.

Validations:

  • Must be a String