code: function toLatLng(v) {
      if (v !== undefined && v !== null) {
          if (v instanceof google.maps.LatLng) {
              return v;
          } else if (v.lat !== undefined && v.lng !== undefined) {
              return new google.maps.LatLng(v);
          }
      }
      return null;
  }
docs: Convert the value into a Google Map LatLng