DistanceServiceResult.js

  • startLocation

    LatLng - The start location.

  • endLocation

    LatLng - The end location.

  • startName

    String - The start location name.

  • endName

    String - The end location name.

  • distance

    Object - Distance information. Contains the following properties:

    • kilometers (String) The distance represented in kilometers.
    • meters (Number) The distance represented in meters.
    • miles (String) The distance represented in miles.
    • feet (Number) The distance represented in feet.
  • time

    Object - Time information. Contains the following properties:

    • seconds (Number) Duration, in seconds, necessary to cover the specified distance.
    • hh_mm (String) Duration, in hh:mm format, necessary to cover the specified distance.

startLocation


property

LatLng - The start location.

endLocation


property

LatLng - The end location.

startName


property

String - The start location name.

endName


property

String - The end location name.

distance


property

Object - Distance information. Contains the following properties:

  • kilometers (String) The distance represented in kilometers.
  • meters (Number) The distance represented in meters.
  • miles (String) The distance represented in miles.
  • feet (Number) The distance represented in feet.

time


property

Object - Time information. Contains the following properties:

  • seconds (Number) Duration, in seconds, necessary to cover the specified distance.
  • hh_mm (String) Duration, in hh:mm format, necessary to cover the specified distance.